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:
1 parent
76221f31c4
commit
180b55bcd4
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user