From 0ca643e53127a8eb43cc46ad7008dcc922f93b6c Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Fri, 23 Mar 2012 18:43:36 +0530 Subject: [PATCH] [IMP] knowledge: add the configuration wizard bzr revid: jap@tinyerp.com-20120323131336-88jmei14iuxh3vm8 --- addons/document/__init__.py | 1 + addons/document/__openerp__.py | 1 + addons/document/res_config.py | 54 +++++++++++++++++++++++++++++ addons/document/res_config_view.xml | 37 ++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 addons/document/res_config.py create mode 100644 addons/document/res_config_view.xml diff --git a/addons/document/__init__.py b/addons/document/__init__.py index 12306b0499b..fd108da7fbc 100644 --- a/addons/document/__init__.py +++ b/addons/document/__init__.py @@ -28,5 +28,6 @@ import directory_report import document import report import wizard +import res_config # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document/__openerp__.py b/addons/document/__openerp__.py index 6691ab53da3..ee34a8b01ec 100644 --- a/addons/document/__openerp__.py +++ b/addons/document/__openerp__.py @@ -55,6 +55,7 @@ ATTENTION: 'security/ir.model.access.csv', 'report/document_report_view.xml', 'board_document_view.xml', + 'res_config_view.xml', ], 'demo_xml': [ 'document_demo.xml','board_document_demo.xml'], 'test': [ diff --git a/addons/document/res_config.py b/addons/document/res_config.py new file mode 100644 index 00000000000..7bf27ae91ec --- /dev/null +++ b/addons/document/res_config.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import fields, osv + +class knowledge_configuration(osv.osv_memory): + _name = 'knowledge.configuration' + _inherit = 'res.config.settings' + + _columns = { + 'module_wiki_quality_manual': fields.boolean('Use an internal wiki to group FAQ', + help =""" + It installs the wiki_quality_manual module. + """), + 'module_wiki_faq': fields.boolean('Track quality with wiki', + help =""" + It install the wiki_faq. + """), + 'module_document_ftp': fields.boolean('Share repositories (FTP)', + help =""" + It install the document_ftp. + """), + 'server_address_port': fields.char('Server address/IP and port',size=128, + help =""" + It assign server address/IP and port. + """), + 'module_document_webdav': fields.boolean('Share Repositories (WebDAV)', + help =""" + It install the document_webdav. + """), + + } + +knowledge_configuration() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/document/res_config_view.xml b/addons/document/res_config_view.xml new file mode 100644 index 00000000000..0794a9e8e86 --- /dev/null +++ b/addons/document/res_config_view.xml @@ -0,0 +1,37 @@ + + + + + Knowledge Application + knowledge.configuration + form + +
+ + + + + + + + + + + + +
+
+ + + Configure Knowledge Application + ir.actions.act_window + knowledge.configuration + + form + form + + + + +
+