From 180b55bcd48d2edc32233ad118faa76376ef92ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 31 Oct 2021 18:47:42 +0100 Subject: [PATCH] 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 --- account.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/account.py b/account.py index 35781f9b0a..ea11f8f60d 100644 --- a/account.py +++ b/account.py @@ -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