How configure chart of account for company during company creation in programmatic way??
I have tried to pass a chart of account template id inside company creation as follow:
@api.model
def create(self, vals_list):
chart_tempalte = self.env['account.chart.template'].search([('name','=','U.A.E Chart of Accounts - Standard')])
if chart_tempalte:
vals_list['chart_template_id'] = chart_tempalte.id
result = super(ResCompany, self).create(vals_list)
return result
But the warning message to configure the chart of account still pop up while creating invoice.
Any solution ??? Thanks in advance !!!