mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -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>).
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
"name": "Knowledge",
|
||||
"name": "Documents Knowledge",
|
||||
"version": "16.0.1.0.0",
|
||||
"author": "OpenERP SA,"
|
||||
"MONK Software, "
|
||||
@ -14,12 +14,12 @@
|
||||
"depends": ["base"],
|
||||
"data": [
|
||||
"data/ir_module_category.xml",
|
||||
"security/knowledge_security.xml",
|
||||
"security/document_knowledge_security.xml",
|
||||
"data/res_users.xml",
|
||||
"views/knowledge.xml",
|
||||
"views/document_knowledge.xml",
|
||||
"views/res_config.xml",
|
||||
],
|
||||
"demo": ["demo/knowledge.xml"],
|
||||
"demo": ["demo/document_knowledge.xml"],
|
||||
"installable": True,
|
||||
"application": True,
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<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
|
||||
applications
|
||||
</field>
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<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>
|
||||
</odoo>
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
<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>
|
||||
</odoo>
|
@ -4,7 +4,7 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class KnowledgeConfigSettings(models.TransientModel):
|
||||
class DocumentKnowledgeConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
module_attachment_indexation = fields.Boolean(
|
||||
@ -16,8 +16,8 @@ class KnowledgeConfigSettings(models.TransientModel):
|
||||
group_ir_attachment_user = fields.Boolean(
|
||||
string="Central access to Documents",
|
||||
help="When you set this field all users will be able to manage "
|
||||
"attachments centrally, from the Knowledge/Documents menu.",
|
||||
implied_group="knowledge.group_ir_attachment_user",
|
||||
"attachments centrally, from the Document Knowledge/Documents menu.",
|
||||
implied_group="document_knowledge.group_ir_attachment_user",
|
||||
)
|
||||
|
||||
module_document_page = fields.Boolean(
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<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="implied_ids" eval="[(4, ref('base.group_user'))]" />
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
@ -33,14 +33,14 @@
|
||||
<menuitem
|
||||
id="menu_document_root"
|
||||
name="Knowledge"
|
||||
groups="knowledge.group_document_user"
|
||||
web_icon="knowledge,static/description/icon.png"
|
||||
groups="document_knowledge.group_document_user"
|
||||
web_icon="document_knowledge,static/description/icon.png"
|
||||
sequence="116"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_document_section"
|
||||
name="Documents"
|
||||
groups="knowledge.group_ir_attachment_user"
|
||||
groups="document_knowledge.group_ir_attachment_user"
|
||||
parent="menu_document_root"
|
||||
sequence="150"
|
||||
/>
|
@ -62,7 +62,7 @@
|
||||
<field name="view_id" ref="view_knowledge_configuration" />
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">inline</field>
|
||||
<field name="context">{'module': 'knowledge'}</field>
|
||||
<field name="context">{'module': 'document_knowledge'}</field>
|
||||
</record>
|
||||
<menuitem
|
||||
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