Skip to content

Commit

Permalink
Merge PR #574 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Mar 4, 2024
2 parents 8ea4833 + 32e7aca commit 4d14421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions analytic_tag_dimension/models/account_analytic_dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ def _update_invoice_report(self, field_to_update, value):
@api.model
def create(self, values):
res = super().create(values)
_models = self.env["ir.model"].search(
[("model", "in", self.get_model_names())], order="id"
_models = (
self.env["ir.model"]
.sudo()
.search([("model", "in", self.get_model_names())], order="id")
)
_models.write(
{
Expand Down

0 comments on commit 4d14421

Please sign in to comment.