changeset abbdaedf971c in modules/account_statement_rule:default
details:
https://hg.tryton.org/modules/account_statement_rule?cmd=changeset;node=abbdaedf971c
description:
Use party from origin as fallback
issue9165
review289491002
diffstat:
account.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 2ae36f46c4e9 -r abbdaedf971c account.py
--- a/account.py Thu Mar 19 19:01:27 2020 +0100
+++ b/account.py Thu Mar 26 00:06:12 2020 +0100
@@ -332,6 +332,8 @@
if not account:
return
+ if not party:
+ party = origin.party
if account.party_required and not party:
return
if not account.party_required: