Sergi Almacellas Abellana pushed to branch branch/default at Tryton / Tryton
Commits:
8739581d by Sergi Almacellas Abellana at 2023-03-14T09:07:55+01:00
Add default warehouse location on order point
- - - - -
1 changed file:
- modules/stock_supply/order_point.py
Changes:
=====================================
modules/stock_supply/order_point.py
=====================================
@@ -129,6 +129,10 @@
def default_type():
return "purchase"
+ @classmethod
+ def default_warehouse_location(cls):
+ return Pool().get('stock.location').get_default_warehouse()
+
@fields.depends('product', '_parent_product.default_uom')
def on_change_product(self):
self.unit = None
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/8739581db72d65d2baf323791609bc951b43e23a
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/8739581db72d65d2baf323791609bc951b43e23a
You're receiving this email because of your account on foss.heptapod.net.