Enforce party required on tests tools default account configuration

issue10317
review351761003
This commit is contained in:
Sergi Almacellas Abellana committed 2021-04-22 07:55:16 +02:00
1 parent c23f29281c
commit a5cdab4d30
1 file changed
+2
+2
View File
@@ -70,10 +70,12 @@ def create_chart(company, tax=False, chart='account.account_template_root_en'):
create_chart.transition_create_account()
receivable, = Account.search([
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', company.id),
], limit=1)
payable, = Account.search([
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', company.id),
], limit=1)
create_chart.properties.company = company