[IMP] Add CMIS modules to Settings

This commit is contained in:
Maxime Chambreuil 2016-01-27 12:08:34 -05:00
parent 84d81949d7
commit cd43f4494e
2 changed files with 37 additions and 13 deletions

View File

@ -32,17 +32,30 @@ class KnowledgeConfigSettings(models.TransientModel):
module_document = fields.Boolean(
'Manage documents',
help='Document indexation, full text search of attachements.\n'
'-This installs the module document.'
'- This installs the module document.'
)
module_document_page = fields.Boolean(
'Manage document pages (Wiki)',
help='Provide document page and category as a wiki.\n'
'-This installs the module document_page.'
'- This installs the module document_page.'
)
module_document_page_approval = fields.Boolean(
'Manage documents approval',
help='Add workflow on documents per category.\n'
'-This installs the module document_page_approval.'
'- This installs the module document_page_approval.'
)
module_cmis_read = fields.Boolean(
'Attach files from an external DMS into Odoo',
help='Connect Odoo with a CMIS compatible server to attach files\n'
'to an Odoo record.\n'
'- This installs the module cmis_read.'
)
module_cmis_write = fields.Boolean(
'Store attachments in an external DMS instead of the Odoo Filestore',
help='Connect Odoo with a CMIS compatible server to store files.\n'
'- This installs the module cmis_write.'
)

View File

@ -20,35 +20,46 @@
<field name="module_document" class="oe_inline"/>
<label for="module_document"/>
</div>
</div>
<label for="id" string="Document pages"/>
<div>
<div>
<field name="module_document_page" class="oe_inline"/>
<label for="module_document_page"/>
</div>
</div>
<label for="id" string="Document page approval"/>
<div>
<div>
<field name="module_document_page_approval" class="oe_inline"/>
<label for="module_document_page_approval"/>
</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"/>
</div>
<div>
<field name="module_cmis_write" class="oe_inline"/>
<label for="module_cmis_write"/>
</div>
</div>
</group>
</form>
</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"/>
<menuitem id="menu_knowledge_configuration"
name="Settings"
parent="knowledge.menu_document_configuration"
sequence="19"
action="action_knowledge_configuration"/>
</data>
</odoo>