Skip to content

Commit

Permalink
[FIX] fieldservice: unaccent parent path
Browse files Browse the repository at this point in the history
Silences the following warning:

WARNING ? odoo.models: parent_path field on model 'fsm.category'
should have unaccent disabled. Add `unaccent=False`
to the field definition.
  • Loading branch information
aleuffre committed Feb 5, 2025
1 parent 8125e14 commit 88aaf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fieldservice/models/fsm_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FSMCategory(models.Model):

name = fields.Char(required="True")
full_name = fields.Char(compute="_compute_full_name", store=True, recursive=True)
parent_id = fields.Many2one("fsm.category", string="Parent", index=True)
parent_id = fields.Many2one("fsm.category", string="Parent", index=True, unaccent=False)
parent_path = fields.Char(index=True)
child_id = fields.One2many("fsm.category", "parent_id", "Child Categories")
color = fields.Integer("Color Index", default=10)
Expand Down

0 comments on commit 88aaf38

Please sign in to comment.