mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 09:28:42 -06:00
[CHG] module name: knowledge -> document_knowledge
In v16 Odoo has its own knowledge module
This commit is contained in:
parent
66914c9d13
commit
042c059a8c
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
{
|
{
|
||||||
"name": "Knowledge",
|
"name": "Documents Knowledge",
|
||||||
"version": "16.0.1.0.0",
|
"version": "16.0.1.0.0",
|
||||||
"author": "OpenERP SA,"
|
"author": "OpenERP SA,"
|
||||||
"MONK Software, "
|
"MONK Software, "
|
||||||
@ -14,12 +14,12 @@
|
|||||||
"depends": ["base"],
|
"depends": ["base"],
|
||||||
"data": [
|
"data": [
|
||||||
"data/ir_module_category.xml",
|
"data/ir_module_category.xml",
|
||||||
"security/knowledge_security.xml",
|
"security/document_knowledge_security.xml",
|
||||||
"data/res_users.xml",
|
"data/res_users.xml",
|
||||||
"views/knowledge.xml",
|
"views/document_knowledge.xml",
|
||||||
"views/res_config.xml",
|
"views/res_config.xml",
|
||||||
],
|
],
|
||||||
"demo": ["demo/knowledge.xml"],
|
"demo": ["demo/document_knowledge.xml"],
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"application": True,
|
"application": True,
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<record model="ir.module.category" id="module_category_knowledge">
|
<record model="ir.module.category" id="module_category_knowledge">
|
||||||
<field name="name">Knowledge</field>
|
<field name="name">Documents Knowledge</field>
|
||||||
<field name="description">Manage documents and knowledge-related
|
<field name="description">Manage documents and knowledge-related
|
||||||
applications
|
applications
|
||||||
</field>
|
</field>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<record id="base.user_admin" model="res.users">
|
<record id="base.user_admin" model="res.users">
|
||||||
<field name="groups_id" eval="[(4,ref('knowledge.group_document_user'))]" />
|
<field
|
||||||
|
name="groups_id"
|
||||||
|
eval="[(4,ref('document_knowledge.group_document_user'))]"
|
||||||
|
/>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo noupdate="1">
|
<odoo noupdate="1">
|
||||||
<record id="base.user_demo" model="res.users">
|
<record id="base.user_demo" model="res.users">
|
||||||
<field name="groups_id" eval="[(4,ref('knowledge.group_document_user'))]" />
|
<field
|
||||||
|
name="groups_id"
|
||||||
|
eval="[(4,ref('document_knowledge.group_document_user'))]"
|
||||||
|
/>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
@ -4,7 +4,7 @@
|
|||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class KnowledgeConfigSettings(models.TransientModel):
|
class DocumentKnowledgeConfigSettings(models.TransientModel):
|
||||||
_inherit = "res.config.settings"
|
_inherit = "res.config.settings"
|
||||||
|
|
||||||
module_attachment_indexation = fields.Boolean(
|
module_attachment_indexation = fields.Boolean(
|
||||||
@ -16,8 +16,8 @@ class KnowledgeConfigSettings(models.TransientModel):
|
|||||||
group_ir_attachment_user = fields.Boolean(
|
group_ir_attachment_user = fields.Boolean(
|
||||||
string="Central access to Documents",
|
string="Central access to Documents",
|
||||||
help="When you set this field all users will be able to manage "
|
help="When you set this field all users will be able to manage "
|
||||||
"attachments centrally, from the Knowledge/Documents menu.",
|
"attachments centrally, from the Document Knowledge/Documents menu.",
|
||||||
implied_group="knowledge.group_ir_attachment_user",
|
implied_group="document_knowledge.group_ir_attachment_user",
|
||||||
)
|
)
|
||||||
|
|
||||||
module_document_page = fields.Boolean(
|
module_document_page = fields.Boolean(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<record id="group_document_user" model="res.groups">
|
<record id="group_document_user" model="res.groups">
|
||||||
<field name="name">Knowledge user</field>
|
<field name="name">Document Knowledge user</field>
|
||||||
<field name="category_id" ref="module_category_knowledge" />
|
<field name="category_id" ref="module_category_knowledge" />
|
||||||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
|
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
|
||||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
@ -33,14 +33,14 @@
|
|||||||
<menuitem
|
<menuitem
|
||||||
id="menu_document_root"
|
id="menu_document_root"
|
||||||
name="Knowledge"
|
name="Knowledge"
|
||||||
groups="knowledge.group_document_user"
|
groups="document_knowledge.group_document_user"
|
||||||
web_icon="knowledge,static/description/icon.png"
|
web_icon="document_knowledge,static/description/icon.png"
|
||||||
sequence="116"
|
sequence="116"
|
||||||
/>
|
/>
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_document_section"
|
id="menu_document_section"
|
||||||
name="Documents"
|
name="Documents"
|
||||||
groups="knowledge.group_ir_attachment_user"
|
groups="document_knowledge.group_ir_attachment_user"
|
||||||
parent="menu_document_root"
|
parent="menu_document_root"
|
||||||
sequence="150"
|
sequence="150"
|
||||||
/>
|
/>
|
@ -62,7 +62,7 @@
|
|||||||
<field name="view_id" ref="view_knowledge_configuration" />
|
<field name="view_id" ref="view_knowledge_configuration" />
|
||||||
<field name="view_mode">form</field>
|
<field name="view_mode">form</field>
|
||||||
<field name="target">inline</field>
|
<field name="target">inline</field>
|
||||||
<field name="context">{'module': 'knowledge'}</field>
|
<field name="context">{'module': 'document_knowledge'}</field>
|
||||||
</record>
|
</record>
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_document_configuration"
|
id="menu_document_configuration"
|
||||||
|
1
setup/document_knowledge/odoo/addons/document_knowledge
Symbolic link
1
setup/document_knowledge/odoo/addons/document_knowledge
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../../document_knowledge
|
@ -1 +0,0 @@
|
|||||||
../../../../knowledge
|
|
Loading…
Reference in New Issue
Block a user