changeset 46e7422f5318 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=46e7422f5318
description:
Set default receivable/payable only if party is required
issue10373
review336131002
diffstat:
tests/tools.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 76309ddad8d0 -r 46e7422f5318 tests/tools.py
--- a/tests/tools.py Sun May 02 10:30:09 2021 +0200
+++ b/tests/tools.py Sun May 02 10:53:07 2021 +0200
@@ -65,8 +65,10 @@
accounts = get_accounts(company, config=config)
- create_chart.form.account_receivable = accounts['receivable']
- create_chart.form.account_payable = accounts['payable']
+ if accounts['receivable'].party_required:
+ create_chart.form.account_receivable = accounts['receivable']
+ if accounts['payable'].party_required:
+ create_chart.form.account_payable = accounts['payable']
create_chart.execute('create_properties')
return create_chart