changeset 2c43a8a8891a in modules/stock_supply:5.0
details:
https://hg.tryton.org/modules/stock_supply?cmd=changeset;node=2c43a8a8891a
description:
Add missing parent depends
issue8712
review258221002
(grafted from 757d0442fd41d33c7118a784ee455544ac5da804)
diffstat:
order_point.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ae2032ac2277 -r 2c43a8a8891a order_point.py
--- a/order_point.py Tue Apr 02 21:42:20 2019 +0200
+++ b/order_point.py Wed Oct 16 21:23:26 2019 +0200
@@ -145,7 +145,7 @@
def default_type():
return "purchase"
- @fields.depends('product')
+ @fields.depends('product', '_parent_product.default_uom')
def on_change_product(self):
self.unit = None
self.unit_digits = 2