Skip to content

Commit

Permalink
[MIG] attachment_category: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cvinh committed May 21, 2024
1 parent 16b3cf3 commit dc1ced2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attachment_category/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
6 changes: 5 additions & 1 deletion attachment_category/models/ir_attachment_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit dc1ced2

Please sign in to comment.