[IMP] base_setup: improve knowledge config wizard

bzr revid: rco@openerp.com-20120420133143-9js93k9ggrphxa5l
This commit is contained in:
Raphael Collet 2012-04-20 15:31:43 +02:00
parent 317fc27481
commit 5b3bae0a46
4 changed files with 20 additions and 16 deletions

View File

@ -59,19 +59,23 @@ class report_config_settings(osv.osv_memory):
class knowledge_config_settings(osv.osv_memory): class knowledge_config_settings(osv.osv_memory):
_name = 'knowledge.configuration' _name = 'knowledge.config.settings'
_inherit = 'res.config.settings' _inherit = 'res.config.settings'
_columns = { _columns = {
'module_wiki_quality_manual': fields.boolean('Use an internal wiki to group FAQ', 'module_wiki_faq': fields.boolean('Use a Wiki for Frequently Asked Questions',
help="""It installs the wiki_quality_manual module."""), help="""This installs the module wiki_faq."""),
'module_wiki_faq': fields.boolean('Track quality with wiki', 'module_wiki_quality_manual': fields.boolean('Track Quality with a Wiki',
help="""It install the wiki_faq."""), help="""This installs the module wiki_quality_manual."""),
'module_document': fields.boolean('Full Document Indexing', 'module_document': fields.boolean('Document Management',
help="""It install the document."""), help="""This is a complete document management system, with: user authentication,
full document search (pptx and docx are not supported), and a document dashboard.
This installs the module document."""),
'module_document_ftp': fields.boolean('Share repositories (FTP)', 'module_document_ftp': fields.boolean('Share repositories (FTP)',
help="""It install the document_ftp."""), help="""Access your documents in OpenERP through an FTP interface.
This installs the module document_ftp."""),
'module_document_webdav': fields.boolean('Share Repositories (WebDAV)', 'module_document_webdav': fields.boolean('Share Repositories (WebDAV)',
help="""It install the document_webdav."""), help="""Access your documents in OpenERP through WebDAV.
This installs the module document_webdav."""),
} }
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -65,7 +65,7 @@
<record id="view_knowledge_configuration" model="ir.ui.view"> <record id="view_knowledge_configuration" model="ir.ui.view">
<field name="name">Configure Knowledge</field> <field name="name">Configure Knowledge</field>
<field name="model">knowledge.configuration</field> <field name="model">knowledge.config.settings</field>
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Configure Knowledge" layout="manual"> <form string="Configure Knowledge" layout="manual">
@ -75,9 +75,9 @@
</div> </div>
<sheet layout="auto"> <sheet layout="auto">
<separator string="Wiki" colspan="4"/> <separator string="Wiki" colspan="4"/>
<field name="module_wiki_quality_manual"/>
<newline/>
<field name="module_wiki_faq"/> <field name="module_wiki_faq"/>
<newline/>
<field name="module_wiki_quality_manual"/>
<separator string="Documents" colspan="4"/> <separator string="Documents" colspan="4"/>
<field name="module_document"/> <field name="module_document"/>
@ -92,7 +92,7 @@
<record id="action_knowledge_configuration" model="ir.actions.act_window"> <record id="action_knowledge_configuration" model="ir.actions.act_window">
<field name="name">Configure Knowledge</field> <field name="name">Configure Knowledge</field>
<field name="res_model">knowledge.configuration</field> <field name="res_model">knowledge.config.settings</field>
<field name="view_mode">form</field> <field name="view_mode">form</field>
<field name="target">inline</field> <field name="target">inline</field>
</record> </record>

View File

@ -23,8 +23,8 @@ from osv import fields, osv
from tools import config from tools import config
class documnet_ftp_setting(osv.osv_memory): class documnet_ftp_setting(osv.osv_memory):
_name = 'knowledge.configuration' _name = 'knowledge.config.settings'
_inherit = 'knowledge.configuration' _inherit = 'knowledge.config.settings'
_columns = { _columns = {
'document_ftp_url': fields.char('Browse Documents', size=128, 'document_ftp_url': fields.char('Browse Documents', size=128,
help ="""Click the url to browse the documents""", readonly=True), help ="""Click the url to browse the documents""", readonly=True),

View File

@ -2,7 +2,7 @@
<data> <data>
<record id="view_document_ftp_configuration" model="ir.ui.view"> <record id="view_document_ftp_configuration" model="ir.ui.view">
<field name="name">Knowledge Application</field> <field name="name">Knowledge Application</field>
<field name="model">knowledge.configuration</field> <field name="model">knowledge.config.settings</field>
<field name="type">form</field> <field name="type">form</field>
<field name="inherit_id" ref="base_setup.view_knowledge_configuration"/> <field name="inherit_id" ref="base_setup.view_knowledge_configuration"/>
<field name="arch" type="xml"> <field name="arch" type="xml">