Skip to content

Commit dc1ced2

Browse files
committed
[MIG] attachment_category: Migration to 17.0
1 parent 16b3cf3 commit dc1ced2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

attachment_category/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Atachment Category",
66
"summary": """
77
Adds a document category to help classification""",
8-
"version": "14.0.1.0.1",
8+
"version": "17.0.1.0.1",
99
"license": "AGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"depends": ["base"],

attachment_category/models/ir_attachment_category.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ class IrAttachmentCategory(models.Model):
1313
display_name = fields.Char(
1414
compute="_compute_display_name",
1515
store=True,
16+
recursive=True,
1617
)
1718
parent_id = fields.Many2one(
1819
"ir.attachment.category",
1920
)
20-
parent_path = fields.Char(index=True)
21+
parent_path = fields.Char(
22+
index=True,
23+
unaccent=False,
24+
)
2125
attachment_ids = fields.Many2many(
2226
compute="_compute_attachment_count", comodel_name="ir.attachment"
2327
)

0 commit comments

Comments
 (0)