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
This commit is contained in:
Cédric Krier committed 2021-10-31 18:47:42 +01:00
1 parent 76221f31c4
commit 180b55bcd4
1 file changed
+4
+4
View File
@@ -2776,8 +2776,12 @@ class CreateChart(Wizard):
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