Skip to content

Commit

Permalink
Merge pull request #218 from kmee/fix/model-search
Browse files Browse the repository at this point in the history
[Fix] model search
  • Loading branch information
rvalyi authored May 29, 2024
2 parents 2729ffe + 3f8969f commit bbb9ad0
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)])
if not model:
raise UserError(
_("Undefined mapping model for Register %s and model")
Expand Down

0 comments on commit bbb9ad0

Please sign in to comment.