diff --git a/attachment_category/__manifest__.py b/attachment_category/__manifest__.py index b722d32713e..456b3b6474b 100644 --- a/attachment_category/__manifest__.py +++ b/attachment_category/__manifest__.py @@ -5,7 +5,7 @@ "name": "Atachment Category", "summary": """ Adds a document category to help classification""", - "version": "14.0.1.0.1", + "version": "17.0.1.0.1", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "depends": ["base"], diff --git a/attachment_category/models/ir_attachment_category.py b/attachment_category/models/ir_attachment_category.py index 32344c08c1f..bc03b88dbb0 100644 --- a/attachment_category/models/ir_attachment_category.py +++ b/attachment_category/models/ir_attachment_category.py @@ -13,11 +13,15 @@ class IrAttachmentCategory(models.Model): display_name = fields.Char( compute="_compute_display_name", store=True, + recursive=True, ) parent_id = fields.Many2one( "ir.attachment.category", ) - parent_path = fields.Char(index=True) + parent_path = fields.Char( + index=True, + unaccent=False, + ) attachment_ids = fields.Many2many( compute="_compute_attachment_count", comodel_name="ir.attachment" )