mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 01:41:26 -06:00
pre-commit update
This commit is contained in:
parent
2a381f0880
commit
1decaeadde
@ -1,6 +1,5 @@
|
|||||||
<?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">Knowledge</field>
|
||||||
<field name="description">Manage documents and knowledge-related
|
<field name="description">Manage documents and knowledge-related
|
||||||
@ -8,5 +7,4 @@
|
|||||||
</field>
|
</field>
|
||||||
<field name="sequence">30</field>
|
<field name="sequence">30</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<?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('knowledge.group_document_user'))]" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<?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('knowledge.group_document_user'))]" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
<?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">Knowledge user</field>
|
||||||
<field name="category_id" ref="module_category_knowledge" />
|
<field name="category_id" ref="module_category_knowledge" />
|
||||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="group_ir_attachment_user" model="res.groups">
|
<record id="group_ir_attachment_user" model="res.groups">
|
||||||
<field name="name">Central access to Documents</field>
|
<field name="name">Central access to Documents</field>
|
||||||
<field name="category_id" ref="base.module_category_hidden" />
|
<field name="category_id" ref="base.module_category_hidden" />
|
||||||
<field name="implied_ids" eval="[(4, ref('group_document_user'))]" />
|
<field name="implied_ids" eval="[(4, ref('group_document_user'))]" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="knowledge_action_documents" model="ir.actions.act_window">
|
<record id="knowledge_action_documents" model="ir.actions.act_window">
|
||||||
<field name="name">Documents</field>
|
<field name="name">Documents</field>
|
||||||
<field name="res_model">ir.attachment</field>
|
<field name="res_model">ir.attachment</field>
|
||||||
<field name="view_mode">kanban,tree,form</field>
|
<field name="view_mode">kanban,tree,form</field>
|
||||||
<field name="context">{'search_default_user_documents': True}</field>
|
<field name="context">{'search_default_user_documents': True}</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="ir_attachment_view_user_documents" model="ir.ui.view">
|
<record id="ir_attachment_view_user_documents" model="ir.ui.view">
|
||||||
<field name="name">Documents search view: additional filters</field>
|
<field name="name">Documents search view: additional filters</field>
|
||||||
<field name="model">ir.attachment</field>
|
<field name="model">ir.attachment</field>
|
||||||
@ -16,36 +14,41 @@
|
|||||||
<search>
|
<search>
|
||||||
<field name="res_model" />
|
<field name="res_model" />
|
||||||
<field name="index_content" />
|
<field name="index_content" />
|
||||||
<filter name="user_documents" string="Documents"
|
<filter
|
||||||
domain="[('res_model', 'not like', 'ir.%'), ('res_model', '!=', False)]"/>
|
name="user_documents"
|
||||||
|
string="Documents"
|
||||||
|
domain="[('res_model', 'not like', 'ir.%'), ('res_model', '!=', False)]"
|
||||||
|
/>
|
||||||
<group string="Group by">
|
<group string="Group by">
|
||||||
<filter name="group_model" string="Model"
|
<filter
|
||||||
context="{'group_by': 'res_model'}"/>
|
name="group_model"
|
||||||
|
string="Model"
|
||||||
|
context="{'group_by': 'res_model'}"
|
||||||
|
/>
|
||||||
</group>
|
</group>
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- Top menu item -->
|
<!-- Top menu item -->
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_document_root"
|
id="menu_document_root"
|
||||||
name="Knowledge"
|
name="Knowledge"
|
||||||
groups="knowledge.group_document_user"
|
groups="knowledge.group_document_user"
|
||||||
web_icon="knowledge,static/description/icon.png"
|
web_icon="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="knowledge.group_ir_attachment_user"
|
||||||
parent="menu_document_root"
|
parent="menu_document_root"
|
||||||
sequence="150"/>
|
sequence="150"
|
||||||
|
/>
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_document"
|
id="menu_document"
|
||||||
name="Documents"
|
name="Documents"
|
||||||
action="knowledge_action_documents"
|
action="knowledge_action_documents"
|
||||||
parent="menu_document_section"
|
parent="menu_document_section"
|
||||||
sequence="0"/>
|
sequence="0"
|
||||||
|
/>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="view_knowledge_configuration" model="ir.ui.view">
|
<record id="view_knowledge_configuration" model="ir.ui.view">
|
||||||
<field name="name">res.config.settings.view.form.inherit.knowledge</field>
|
<field name="name">res.config.settings.view.form.inherit.knowledge</field>
|
||||||
<field name="model">res.config.settings</field>
|
<field name="model">res.config.settings</field>
|
||||||
@ -8,11 +7,17 @@
|
|||||||
<field name="priority" eval="90" />
|
<field name="priority" eval="90" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||||
<div class="app_settings_block" data-string="Knowledge"
|
<div
|
||||||
string="Knowledge" data-key="knowledge">
|
class="app_settings_block"
|
||||||
|
data-string="Knowledge"
|
||||||
|
string="Knowledge"
|
||||||
|
data-key="knowledge"
|
||||||
|
>
|
||||||
<h2>Knowledge and Documents Management</h2>
|
<h2>Knowledge and Documents Management</h2>
|
||||||
<div class="row mt16 o_settings_container"
|
<div
|
||||||
id="maintenance_mode_setting">
|
class="row mt16 o_settings_container"
|
||||||
|
id="maintenance_mode_setting"
|
||||||
|
>
|
||||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||||
<div class="o_setting_left_pane">
|
<div class="o_setting_left_pane">
|
||||||
<field name="module_attachment_indexation" />
|
<field name="module_attachment_indexation" />
|
||||||
@ -47,8 +52,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h2>Connect with an external DMS</h2>
|
<h2>Connect with an external DMS</h2>
|
||||||
<div class="row mt16 o_settings_container"
|
<div
|
||||||
id="maintenance_notification_setting">
|
class="row mt16 o_settings_container"
|
||||||
|
id="maintenance_notification_setting"
|
||||||
|
>
|
||||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||||
<div class="o_setting_left_pane">
|
<div class="o_setting_left_pane">
|
||||||
<field name="module_cmis_read" />
|
<field name="module_cmis_read" />
|
||||||
@ -79,15 +86,18 @@
|
|||||||
<field name="target">inline</field>
|
<field name="target">inline</field>
|
||||||
<field name="context">{'module': 'knowledge'}</field>
|
<field name="context">{'module': 'knowledge'}</field>
|
||||||
</record>
|
</record>
|
||||||
<menuitem id="menu_document_configuration"
|
<menuitem
|
||||||
|
id="menu_document_configuration"
|
||||||
name="Configuration"
|
name="Configuration"
|
||||||
parent="menu_document_root"
|
parent="menu_document_root"
|
||||||
groups="base.group_system"
|
groups="base.group_system"
|
||||||
sequence="200"/>
|
sequence="200"
|
||||||
<menuitem id="menu_knowledge_configuration"
|
/>
|
||||||
|
<menuitem
|
||||||
|
id="menu_knowledge_configuration"
|
||||||
name="Settings"
|
name="Settings"
|
||||||
parent="menu_document_configuration"
|
parent="menu_document_configuration"
|
||||||
sequence="0"
|
sequence="0"
|
||||||
action="action_knowledge_configuration"/>
|
action="action_knowledge_configuration"
|
||||||
|
/>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
Loading…
Reference in New Issue
Block a user