diff --git a/l10n_ar_sale/__manifest__.py b/l10n_ar_sale/__manifest__.py index 8b7fadf..3ed12d4 100644 --- a/l10n_ar_sale/__manifest__.py +++ b/l10n_ar_sale/__manifest__.py @@ -25,6 +25,6 @@ 'demo': [ ], 'installable': True, - 'auto_install': False, + 'auto_install': True, 'application': False, } diff --git a/l10n_ar_sale/models/account_chart_template.py b/l10n_ar_sale/models/account_chart_template.py index 0d1475d..c6a23d6 100644 --- a/l10n_ar_sale/models/account_chart_template.py +++ b/l10n_ar_sale/models/account_chart_template.py @@ -30,7 +30,7 @@ def check_created_checkbook(self, checkbook_vals, company): ('name', '=', checkbook_vals['name']), ('company_id', '=', company.id)]) if not checkbook: - checkbook.create(checkbook_vals) + checkbook.sudo().create(checkbook_vals) return True @api.model