Skip to content

Commit

Permalink
Replace Model search by model to name
Browse files Browse the repository at this point in the history
  • Loading branch information
raimonesteve committed Feb 6, 2025
1 parent c7b54cd commit a3a216f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check_modify_fields(cls, payment_types, fields):
record, = records
model, = IrModel.search([('name', '=', model_name)])
field, = Field.search([
('model.model', '=', cls.__name__),
('model.name', '=', cls.__name__),
('name', 'in', list(fields)),
], limit=1)
# Use payment from record to be coherent in error message
Expand Down

0 comments on commit a3a216f

Please sign in to comment.