mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 19:08:42 -06:00
[11.0][MIG] attachment_category: Backport from 12.0
This commit is contained in:
parent
0ed0592a35
commit
c461f91bf5
@ -5,11 +5,12 @@
|
|||||||
'name': 'Atachment Category',
|
'name': 'Atachment Category',
|
||||||
'summary': """
|
'summary': """
|
||||||
Adds a document category to help classification""",
|
Adds a document category to help classification""",
|
||||||
'version': '12.0.1.0.0',
|
'version': '11.0.1.0.0',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
|
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
|
||||||
'depends': [
|
'depends': [
|
||||||
"base",
|
"base",
|
||||||
|
"knowledge",
|
||||||
],
|
],
|
||||||
'data': [
|
'data': [
|
||||||
'views/ir_attachment.xml',
|
'views/ir_attachment.xml',
|
||||||
|
@ -17,8 +17,11 @@ class IrAttachmentCategory(models.Model):
|
|||||||
)
|
)
|
||||||
parent_id = fields.Many2one(
|
parent_id = fields.Many2one(
|
||||||
"ir.attachment.category",
|
"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(
|
attachment_ids = fields.Many2many(
|
||||||
compute="_compute_attachment_count",
|
compute="_compute_attachment_count",
|
||||||
comodel_name="ir.attachment"
|
comodel_name="ir.attachment"
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
<record model="ir.ui.menu" id="ir_attachment_category_menu">
|
<record model="ir.ui.menu" id="ir_attachment_category_menu">
|
||||||
<field name="name">Attachment Categories</field>
|
<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="action" ref="ir_attachment_category_act_window"/>
|
||||||
<field name="sequence" eval="16"/>
|
<field name="sequence" eval="16"/>
|
||||||
</record>
|
</record>
|
||||||
|
6
setup/attachment_category/.eggs/README.txt
Normal file
6
setup/attachment_category/.eggs/README.txt
Normal 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.
|
||||||
|
|
2
setup/attachment_category/setup.cfg
Normal file
2
setup/attachment_category/setup.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[bdist_wheel]
|
||||||
|
universal=1
|
Loading…
Reference in New Issue
Block a user