changeset e6bbdc36fd23 in modules/stock_supply:5.2
details:
https://hg.tryton.org/modules/stock_supply?cmd=changeset;node=e6bbdc36fd23
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 73f438182780 -r e6bbdc36fd23 order_point.py
--- a/order_point.py Mon May 06 15:17:36 2019 +0200
+++ b/order_point.py Wed Oct 16 21:23:26 2019 +0200
@@ -132,7 +132,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