mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-21 19:47:24 -06:00
[MIG] attachment_category: Migration to 17.0
This commit is contained in:
parent
16b3cf3aa5
commit
dc1ced2ccd
@ -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"],
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user