mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 17:08:46 -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",
|
"name": "Atachment Category",
|
||||||
"summary": """
|
"summary": """
|
||||||
Adds a document category to help classification""",
|
Adds a document category to help classification""",
|
||||||
"version": "14.0.1.0.1",
|
"version": "17.0.1.0.1",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
|
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
|
||||||
"depends": ["base"],
|
"depends": ["base"],
|
||||||
|
@ -13,11 +13,15 @@ class IrAttachmentCategory(models.Model):
|
|||||||
display_name = fields.Char(
|
display_name = fields.Char(
|
||||||
compute="_compute_display_name",
|
compute="_compute_display_name",
|
||||||
store=True,
|
store=True,
|
||||||
|
recursive=True,
|
||||||
)
|
)
|
||||||
parent_id = fields.Many2one(
|
parent_id = fields.Many2one(
|
||||||
"ir.attachment.category",
|
"ir.attachment.category",
|
||||||
)
|
)
|
||||||
parent_path = fields.Char(index=True)
|
parent_path = fields.Char(
|
||||||
|
index=True,
|
||||||
|
unaccent=False,
|
||||||
|
)
|
||||||
attachment_ids = fields.Many2many(
|
attachment_ids = fields.Many2many(
|
||||||
compute="_compute_attachment_count", comodel_name="ir.attachment"
|
compute="_compute_attachment_count", comodel_name="ir.attachment"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user