From 21f5155fd9cc7aa1c24174bffdf89971cf00495a Mon Sep 17 00:00:00 2001 From: Gervais Naoussi Date: Fri, 23 Oct 2015 12:18:36 -0400 Subject: [PATCH] Knowledge fixed as base module for knowledge management system reamed.rst added version number corrected res_config.py is now respecting the new odoo API --- knowledge/README.rst | 106 +++++++++++++++++++++++++++++++++ knowledge/__openerp__.py | 4 +- knowledge/models/res_config.py | 9 ++- knowledge/readme.md | 27 --------- 4 files changed, 112 insertions(+), 34 deletions(-) create mode 100644 knowledge/README.rst delete mode 100644 knowledge/readme.md diff --git a/knowledge/README.rst b/knowledge/README.rst new file mode 100644 index 00000000..990c479f --- /dev/null +++ b/knowledge/README.rst @@ -0,0 +1,106 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +================================ +Knowledge Management System base +================================ + +This module allows you to write web pages for internal documentation. + +Installation +============ + +Makes the Knowledge Application Configuration available from where you can install +document and Wiki based Hidden. + +Configuration +============= + +No configuration required + +Usage +===== + +To use this module, you need to: + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch} + +.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt +.. branch is "8.0" for example + +Known issues / Roadmap +====================== + +* ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here `_. + + +Credits +======= + +Contributors +------------ + +* Odoo SA +* Savoir-faire Linux +* Gervais Naoussi + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. + +Changelog +--------- + +v9.0.1.0.0 + +This module is an official module but was not present in odoo 9.0 official repository +so we took it from Odoo 8.0 repository and add it here. + +Here are the modification that have been done to make it work + +We added views folder +we moved Knowledge_view.xml and res_config_view.xml to views +we renamed Knowledge_view.xml to Knowledge.xml and res_config_view.xml to res_config.xml + +res_config view is edited so that knowledge setting is accessible the following way +"knowledge/configuration/settings" + +We added demo folder +we moved Knowledge_demo.xml to demo +we renamed Knowledge_demo.xml to Knowledge.xml and + + +we created models folder +we moved res_config.py to that folder and edited it to respect the new Odoo model api +and OCA guidelines +#osv.osv_memory replace by models.TransientModel +#_columns removed +we created the __init__.py file + +we edited the __openerp__.py file to reflect the new folder structure diff --git a/knowledge/__openerp__.py b/knowledge/__openerp__.py index 6d92fc8c..bf883c5a 100644 --- a/knowledge/__openerp__.py +++ b/knowledge/__openerp__.py @@ -22,9 +22,9 @@ { 'name' : 'Knowledge Management System', - 'version' : '9.0.1.0', + 'version' : '9.0.1.0.0', 'depends' : ['base','base_setup'], - 'author' : 'OpenERP SA', + 'author' : ['OpenERP SA','Odoo Community Association (OCA)'], 'category': 'Hidden/Dependency', 'description': """ Installer for knowledge-based Hidden. diff --git a/knowledge/models/res_config.py b/knowledge/models/res_config.py index 1d575271..c26083fd 100644 --- a/knowledge/models/res_config.py +++ b/knowledge/models/res_config.py @@ -21,14 +21,13 @@ from openerp import models, fields -class knowledge_config_settings(models.TransientModel): +class knowledgeConfigSettings(models.TransientModel): _name = 'knowledge.config.settings' _inherit = 'res.config.settings' - _fields = { - 'module_document': fields.boolean('Manage documents', + 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.') + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/knowledge/readme.md b/knowledge/readme.md deleted file mode 100644 index 8106c27c..00000000 --- a/knowledge/readme.md +++ /dev/null @@ -1,27 +0,0 @@ -Knowledge module migration --------------------------- - -This module is an official module but was not present in odoo 9.0 official repository -so we took it from Odoo 8.0 repository and add it here. - -Here are the modification that have been done to make it work - -We added views folder -we moved Knowledge_view.xml and res_config_view.xml to views -we renamed Knowledge_view.xml to Knowledge.xml and res_config_view.xml to res_config.xml - -res_config view is edited so that knowledge setting is accessible the following way -"knowledge/configuration/settings" - -We added demo folder -we moved Knowledge_demo.xml to demo -we renamed Knowledge_demo.xml to Knowledge.xml and - - -we created models folder -we moved res_config.py to that folder and edited it to respect the new Odoo model api -#osv.osv_memory replace by models.TransientModel -#_columns replaced by _fields -we created the __init__.py file - -we edited the __openerp__.py file to reflect the new folder structure