changeset e3f7587a5d8b in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=e3f7587a5d8b
description:
Always fill values for default properties of created chart of account
The create_chart test function relies on having the properties always
set.
issue10918
review360391002
diffstat:
account.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 54994e1bdde9 -r e3f7587a5d8b account.py
--- a/account.py Sun Oct 31 18:46:32 2021 +0100
+++ b/account.py Sun Oct 31 18:47:42 2021 +0100
@@ -2776,8 +2776,12 @@
if len(receivable_accounts) == 1:
defaults['account_receivable'] = receivable_accounts[0].id
+ else:
+ defaults['account_receivable'] = None
if len(payable_accounts) == 1:
defaults['account_payable'] = payable_accounts[0].id
+ else:
+ defaults['account_payable'] = None
return defaults