From 820e6f5d4a869ccb88866632ca8b122c81f1c052 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Wed, 27 Jan 2016 12:08:34 -0500 Subject: [PATCH] Add CMIS modules to Settings --- document_knowledge/README.rst | 1 + document_knowledge/__openerp__.py | 4 ++-- document_knowledge/models/res_config.py | 19 ++++++++++++--- document_knowledge/views/res_config.xml | 31 +++++++++++++++++-------- 4 files changed, 40 insertions(+), 15 deletions(-) diff --git a/document_knowledge/README.rst b/document_knowledge/README.rst index 1a021b93..60a08124 100644 --- a/document_knowledge/README.rst +++ b/document_knowledge/README.rst @@ -34,6 +34,7 @@ Known issues / Roadmap ====================== * Add options for other OCA extension modules as they are made available. +* `Migrate CMIS modules to version 9 `_ Bug Tracker =========== diff --git a/document_knowledge/__openerp__.py b/document_knowledge/__openerp__.py index 65e0b9f1..8f2a0d85 100644 --- a/document_knowledge/__openerp__.py +++ b/document_knowledge/__openerp__.py @@ -20,8 +20,8 @@ ############################################################################## { "name": "Knowledge Management System", - "version": "9.0.1.0.0", - "depends": ["base", "base_setup"], + "version": "9.0.1.1.0", + "depends": ["base_setup"], "author": "OpenERP SA, Odoo Community Association (OCA)", "category": "Hidden/Dependency", "license": "AGPL-3", diff --git a/document_knowledge/models/res_config.py b/document_knowledge/models/res_config.py index 04f6e872..49ece8fc 100644 --- a/document_knowledge/models/res_config.py +++ b/document_knowledge/models/res_config.py @@ -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.' ) diff --git a/document_knowledge/views/res_config.xml b/document_knowledge/views/res_config.xml index edc82968..a3701961 100644 --- a/document_knowledge/views/res_config.xml +++ b/document_knowledge/views/res_config.xml @@ -20,35 +20,46 @@ + Configure Knowledge knowledge.config.settings form inline - + +