mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
knowledge: Migration to 11.0
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
<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>
|
||||
@@ -28,26 +29,26 @@
|
||||
|
||||
<!-- Top menu item -->
|
||||
<menuitem
|
||||
id="menu_document_root"
|
||||
name="Knowledge"
|
||||
groups="base.group_system,knowledge.group_document_user"
|
||||
sequence="116"/>
|
||||
id="menu_document_root"
|
||||
name="Knowledge"
|
||||
groups="base.group_system,knowledge.group_document_user"
|
||||
sequence="116"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_document_configuration"
|
||||
name="Configuration"
|
||||
parent="menu_document_root"
|
||||
sequence="50"/>
|
||||
id="menu_document_configuration"
|
||||
name="Configuration"
|
||||
parent="menu_document_root"
|
||||
sequence="50"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_document_section"
|
||||
name="Documents"
|
||||
parent="menu_document_root"/>
|
||||
id="menu_document_section"
|
||||
name="Documents"
|
||||
parent="menu_document_root"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_document"
|
||||
name="Documents"
|
||||
action="knowledge_action_documents"
|
||||
parent="menu_document_section"/>
|
||||
id="menu_document"
|
||||
name="Documents"
|
||||
action="knowledge_action_documents"
|
||||
parent="menu_document_section"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -2,62 +2,65 @@
|
||||
<odoo>
|
||||
|
||||
<record id="view_knowledge_configuration" model="ir.ui.view">
|
||||
<field name="name">Configure Knowledge</field>
|
||||
<field name="model">knowledge.config.settings</field>
|
||||
<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="arch" type="xml">
|
||||
<form string="Configure Knowledge" class= "oe_form_configuration">
|
||||
<header>
|
||||
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
|
||||
</header>
|
||||
<separator string="Knowledge and Documents Management"/>
|
||||
<group>
|
||||
<label for="id" string="Documents"/>
|
||||
<div>
|
||||
<div>
|
||||
<field name="module_document" class="oe_inline"/>
|
||||
<label for="module_document"/>
|
||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||
<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="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_document"/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_document_page" class="oe_inline"/>
|
||||
<label for="module_document_page"/>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document_page"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_document_page"/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_document_page_approval" class="oe_inline"/>
|
||||
<label for="module_document_page_approval"/>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document_page_approval"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_document_page_approval"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
<separator string="Connect with an external DMS"/>
|
||||
<group>
|
||||
<label for="id" string="Using CMIS"/>
|
||||
<div>
|
||||
<div>
|
||||
<field name="module_cmis_read" class="oe_inline"/>
|
||||
<label for="module_cmis_read"/>
|
||||
<h2>Connect with an external DMS</h2>
|
||||
<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"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_cmis_read"/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_cmis_write" class="oe_inline"/>
|
||||
<label for="module_cmis_write"/>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_cmis_write"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_cmis_write"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</form>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_knowledge_configuration" model="ir.actions.act_window">
|
||||
<field name="name">Configure Knowledge</field>
|
||||
<field name="res_model">knowledge.config.settings</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">inline</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_knowledge_configuration"
|
||||
name="Settings"
|
||||
parent="knowledge.menu_document_configuration"
|
||||
sequence="19"
|
||||
action="action_knowledge_configuration"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user