changeset 62f07eda7998 in modules/account_product:4.8
details:
https://hg.tryton.org/modules/account_product?cmd=changeset;node=62f07eda7998
description:
Add missing parent depends
issue8712
review258221002
(grafted from 046480dafd25706392e502fe1075ee99e39bc48b)
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 011349061dbc -r 62f07eda7998 product.py
--- a/product.py Tue Feb 19 22:44:58 2019 +0100
+++ b/product.py Wed Oct 16 21:18:31 2019 +0200
@@ -183,7 +183,7 @@
else:
return [x.id for x in getattr(self, name[:-5])]
- @fields.depends('parent', 'accounting')
+ @fields.depends('parent', '_parent_parent.accounting', 'accounting')
def on_change_with_accounting(self):
if self.parent:
return self.parent.accounting