[MIG] attachment_category: Migration to 17.0

This commit is contained in:
Cyril VINH-TUNG 2024-05-09 19:41:49 -10:00
parent 16b3cf3aa5
commit dc1ced2ccd
2 changed files with 6 additions and 2 deletions

View File

@ -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"],

View File

@ -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"
)