Skip to content

Commit

Permalink
[FIX] model search
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed May 27, 2024
1 parent 2729ffe commit 3f8969f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_br_sped_base/models/sped_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _compute_reference(self):
if not res.res_model:
res.reference = ""
continue
model = self.env["ir.model"].search([("model", "=", self.res_model)])
model = self.env["ir.model"].search([("model", "=", res.res_model)])

Check warning on line 69 in l10n_br_sped_base/models/sped_mixin.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_sped_base/models/sped_mixin.py#L69

Added line #L69 was not covered by tests
if not model:
raise UserError(
_("Undefined mapping model for Register %s and model")
Expand Down

0 comments on commit 3f8969f

Please sign in to comment.