[11.0][MIG] attachment_category: Backport from 12.0

This commit is contained in:
Denis Roussel 2020-05-02 13:09:36 +02:00
parent 0ed0592a35
commit c461f91bf5
5 changed files with 15 additions and 3 deletions

View File

@ -5,11 +5,12 @@
'name': 'Atachment Category',
'summary': """
Adds a document category to help classification""",
'version': '12.0.1.0.0',
'version': '11.0.1.0.0',
'license': 'AGPL-3',
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
'depends': [
"base",
"knowledge",
],
'data': [
'views/ir_attachment.xml',

View File

@ -17,8 +17,11 @@ class IrAttachmentCategory(models.Model):
)
parent_id = fields.Many2one(
"ir.attachment.category",
index=True,
ondelete="cascade",
)
parent_path = fields.Char(index=True)
parent_left = fields.Integer('Left Parent', index=True)
parent_right = fields.Integer('Right Parent', index=True)
attachment_ids = fields.Many2many(
compute="_compute_attachment_count",
comodel_name="ir.attachment"

View File

@ -63,7 +63,7 @@
<record model="ir.ui.menu" id="ir_attachment_category_menu">
<field name="name">Attachment Categories</field>
<field name="parent_id" ref="base.next_id_9"/>
<field name="parent_id" ref="knowledge.menu_document_section"/>
<field name="action" ref="ir_attachment_category_act_window"/>
<field name="sequence" eval="16"/>
</record>

View File

@ -0,0 +1,6 @@
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.
This directory caches those eggs to prevent repeated downloads.
However, it is safe to delete this directory.

View File

@ -0,0 +1,2 @@
[bdist_wheel]
universal=1