[ADD] base_setup: base config wizard for sale and crm
bzr revid: rco@openerp.com-20120307075356-fzv5643lnhx40syb
This commit is contained in:
parent
318d99d029
commit
e61bacbc43
|
@ -201,4 +201,13 @@ class specify_partner_terminology(osv.osv_memory):
|
|||
self.make_translations(cr, uid, ids, act_ref, 'model', act_id.help, _case_insensitive_replace(act_id.help,'Customer',o.partner), res_id=act_id.id, context=context)
|
||||
return {}
|
||||
|
||||
|
||||
|
||||
# Preferences wizard for Sales & CRM.
|
||||
# It is defined here because it must be inherited independently in modules sale and crm.
|
||||
#
|
||||
class sale_config_settings(osv.osv_memory):
|
||||
_name = 'sale.config.settings'
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -142,5 +142,30 @@
|
|||
<field name="sequence">1</field>
|
||||
</record>
|
||||
|
||||
<record id="base.sale_settings_form_view" model="ir.ui.view">
|
||||
<field name="name">sale.config.settings</field>
|
||||
<field name="model">sale.config.settings</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Configure Sales & CRM">
|
||||
<group name="sales" colspan="4">
|
||||
</group>
|
||||
<group name="crm" colspan="4">
|
||||
</group>
|
||||
<group name="plugins" colspan="4">
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="base.action_sale_config" model="ir.actions.act_window">
|
||||
<field name="name">Configure Sales & CRM</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">sale.config.settings</field>
|
||||
<field name="view_id" ref="base.sale_settings_form_view"/>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue