diff --git a/l10n_br_fiscal/models/simplified_tax.py b/l10n_br_fiscal/models/simplified_tax.py index b145ef6101ee..5298ae2ca2d9 100644 --- a/l10n_br_fiscal/models/simplified_tax.py +++ b/l10n_br_fiscal/models/simplified_tax.py @@ -34,13 +34,15 @@ class SimplifiedTax(models.Model): readonly=True, ) - @api.model - def create(self, vals): - """Override create for update effective tax lines in all companys""" - record = super().create(vals) + @api.model_create_multi + def create(self, vals_list): + """ + Override the create method to update the effective tax lines in all companies + """ + simplified_taxes = super().create(vals_list) companies = self.env["res.company"].search( [("tax_framework", "=", TAX_FRAMEWORK_SIMPLES)] ) for company in companies: company.update_effective_tax_lines() - return record + return simplified_taxes diff --git a/l10n_br_fiscal/static/description/index.html b/l10n_br_fiscal/static/description/index.html index 37dcc34f4f8a..bbd966c71175 100644 --- a/l10n_br_fiscal/static/description/index.html +++ b/l10n_br_fiscal/static/description/index.html @@ -1,3 +1,4 @@ +