changeset f54145b27d94 in modules/account_statement_rule:5.2
details:
https://hg.tryton.org/modules/account_statement_rule?cmd=changeset;node=f54145b27d94
description:
Add missing parent depends
issue8712
review258221002
(grafted from c96b389a15bdae4d5999d208c58d9431cb63bd32)
diffstat:
account.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4a4afa49f7f4 -r f54145b27d94 account.py
--- a/account.py Mon May 06 14:58:44 2019 +0200
+++ b/account.py Wed Oct 16 21:19:16 2019 +0200
@@ -298,7 +298,7 @@
fields.Many2One('company.company', "Company"),
'on_change_with_company')
- @fields.depends('rule')
+ @fields.depends('rule', '_parent_rule.company')
def on_change_with_company(self, name=None):
if self.rule and self.rule.company:
return self.rule.company.id