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>
|
||||
|
||||
<record model="ir.module.category" id="module_category_knowledge">
|
||||
<field name="name">Knowledge</field>
|
||||
<field name="description">Manage documents and knowledge-related
|
||||
@ -8,5 +7,4 @@
|
||||
</field>
|
||||
<field name="sequence">30</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?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('knowledge.group_document_user'))]" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?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('knowledge.group_document_user'))]" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -1,16 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="group_document_user" model="res.groups">
|
||||
<field name="name">Knowledge user</field>
|
||||
<field name="category_id" ref="module_category_knowledge"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
<field name="category_id" ref="module_category_knowledge" />
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
||||
</record>
|
||||
|
||||
<record id="group_ir_attachment_user" model="res.groups">
|
||||
<field name="name">Central access to Documents</field>
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
<field name="implied_ids" eval="[(4, ref('group_document_user'))]"/>
|
||||
<field name="category_id" ref="base.module_category_hidden" />
|
||||
<field name="implied_ids" eval="[(4, ref('group_document_user'))]" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -1,51 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="knowledge_action_documents" model="ir.actions.act_window">
|
||||
<field name="name">Documents</field>
|
||||
<field name="res_model">ir.attachment</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="context">{'search_default_user_documents': True}</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_attachment_view_user_documents" model="ir.ui.view">
|
||||
<field name="name">Documents search view: additional filters</field>
|
||||
<field name="model">ir.attachment</field>
|
||||
<field name="inherit_id" ref="base.view_attachment_search"/>
|
||||
<field name="inherit_id" ref="base.view_attachment_search" />
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="res_model"/>
|
||||
<field name="index_content"/>
|
||||
<filter name="user_documents" string="Documents"
|
||||
domain="[('res_model', 'not like', 'ir.%'), ('res_model', '!=', False)]"/>
|
||||
<field name="res_model" />
|
||||
<field name="index_content" />
|
||||
<filter
|
||||
name="user_documents"
|
||||
string="Documents"
|
||||
domain="[('res_model', 'not like', 'ir.%'), ('res_model', '!=', False)]"
|
||||
/>
|
||||
<group string="Group by">
|
||||
<filter name="group_model" string="Model"
|
||||
context="{'group_by': 'res_model'}"/>
|
||||
<filter
|
||||
name="group_model"
|
||||
string="Model"
|
||||
context="{'group_by': 'res_model'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Top menu item -->
|
||||
<menuitem
|
||||
id="menu_document_root"
|
||||
name="Knowledge"
|
||||
groups="knowledge.group_document_user"
|
||||
web_icon="knowledge,static/description/icon.png"
|
||||
sequence="116"/>
|
||||
|
||||
sequence="116"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_document_section"
|
||||
name="Documents"
|
||||
groups="knowledge.group_ir_attachment_user"
|
||||
parent="menu_document_root"
|
||||
sequence="150"/>
|
||||
|
||||
sequence="150"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_document"
|
||||
name="Documents"
|
||||
action="knowledge_action_documents"
|
||||
parent="menu_document_section"
|
||||
sequence="0"/>
|
||||
|
||||
sequence="0"
|
||||
/>
|
||||
</odoo>
|
||||
|
@ -1,68 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_knowledge_configuration" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.knowledge</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
||||
<field name="priority" eval="90"/>
|
||||
<field name="inherit_id" ref="base.res_config_settings_view_form" />
|
||||
<field name="priority" eval="90" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||
<div class="app_settings_block" data-string="Knowledge"
|
||||
string="Knowledge" data-key="knowledge">
|
||||
<div
|
||||
class="app_settings_block"
|
||||
data-string="Knowledge"
|
||||
string="Knowledge"
|
||||
data-key="knowledge"
|
||||
>
|
||||
<h2>Knowledge and Documents Management</h2>
|
||||
<div class="row mt16 o_settings_container"
|
||||
id="maintenance_mode_setting">
|
||||
<div
|
||||
class="row mt16 o_settings_container"
|
||||
id="maintenance_mode_setting"
|
||||
>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_attachment_indexation"/>
|
||||
<field name="module_attachment_indexation" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_attachment_indexation"/>
|
||||
<label for="module_attachment_indexation" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="group_ir_attachment_user"/>
|
||||
<field name="group_ir_attachment_user" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="group_ir_attachment_user"/>
|
||||
<label for="group_ir_attachment_user" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document_page"/>
|
||||
<field name="module_document_page" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_document_page"/>
|
||||
<label for="module_document_page" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document_page_approval"/>
|
||||
<field name="module_document_page_approval" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_document_page_approval"/>
|
||||
<label for="module_document_page_approval" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Connect with an external DMS</h2>
|
||||
<div class="row mt16 o_settings_container"
|
||||
id="maintenance_notification_setting">
|
||||
<div
|
||||
class="row mt16 o_settings_container"
|
||||
id="maintenance_notification_setting"
|
||||
>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_cmis_read"/>
|
||||
<field name="module_cmis_read" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_cmis_read"/>
|
||||
<label for="module_cmis_read" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_cmis_write"/>
|
||||
<field name="module_cmis_write" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_cmis_write"/>
|
||||
<label for="module_cmis_write" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -74,20 +81,23 @@
|
||||
<field name="name">Settings</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.config.settings</field>
|
||||
<field name="view_id" ref="view_knowledge_configuration"/>
|
||||
<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>
|
||||
</record>
|
||||
<menuitem id="menu_document_configuration"
|
||||
name="Configuration"
|
||||
parent="menu_document_root"
|
||||
groups="base.group_system"
|
||||
sequence="200"/>
|
||||
<menuitem id="menu_knowledge_configuration"
|
||||
name="Settings"
|
||||
parent="menu_document_configuration"
|
||||
sequence="0"
|
||||
action="action_knowledge_configuration"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_document_configuration"
|
||||
name="Configuration"
|
||||
parent="menu_document_root"
|
||||
groups="base.group_system"
|
||||
sequence="200"
|
||||
/>
|
||||
<menuitem
|
||||
id="menu_knowledge_configuration"
|
||||
name="Settings"
|
||||
parent="menu_document_configuration"
|
||||
sequence="0"
|
||||
action="action_knowledge_configuration"
|
||||
/>
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user