diff --git a/addons/base_setup/base_setup.py b/addons/base_setup/base_setup.py
index dd9bed97327..9c1d7d9fa8e 100644
--- a/addons/base_setup/base_setup.py
+++ b/addons/base_setup/base_setup.py
@@ -97,27 +97,4 @@ 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 is inherited independently in modules sale, crm,
-# plugin_outlook and plugin_thunderbird.
-class sale_config_settings(osv.osv_memory):
- _name = 'sale.config.settings'
- _inherit = 'res.config.settings'
- _columns = {
- 'module_crm': fields.boolean('CRM'),
- 'module_plugin_thunderbird': fields.boolean('Thunderbird Plugin',
- help="""The plugin allows you archive email and its attachments to the selected
- OpenERP objects. You can select a partner, or a lead and
- attach the selected mail as a .eml file in
- the attachment of a selected record. You can create documents for CRM Lead,
- Partner from the selected emails.
- This installs the module plugin_thunderbird."""),
- 'module_plugin_outlook': fields.boolean('Outlook Plugin',
- help="""The Outlook plugin allows you to select an object that you would like to add
- to your email and its attachments from MS Outlook. You can select a partner,
- or a lead object and archive a selected
- email into an OpenERP mail message with attachments.
- This installs the module plugin_outlook."""),
- }
-
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/base_setup/base_setup_views.xml b/addons/base_setup/base_setup_views.xml
index 631e4a10e07..eb59d918681 100644
--- a/addons/base_setup/base_setup_views.xml
+++ b/addons/base_setup/base_setup_views.xml
@@ -43,38 +43,5 @@
new
-
-
- sale settings
- sale.config.settings
- form
-
-
-
-
-
-
- Configure Sales
- ir.actions.act_window
- sale.config.settings
-
- form
- inline
-
-
diff --git a/addons/base_setup/res_config.py b/addons/base_setup/res_config.py
index d18fda4fbcd..00e2a8a9fa4 100644
--- a/addons/base_setup/res_config.py
+++ b/addons/base_setup/res_config.py
@@ -33,14 +33,14 @@ class base_config_settings(osv.osv_memory):
'module_share': fields.boolean('Allow Sharing Resources to External Users',
help="""As an example, you will be able to share a project or some tasks to your customers, or quotes/sales to several persons at your customer company, or your agenda availabilities to your contacts."""),
}
-
+
def open_company(self, cr, uid, ids, context=None):
if context is None:
context = {}
-
- company_obj = self.pool.get('res.company')
+
+ company_obj = self.pool.get('res.company')
company_id = company_obj.browse(cr, uid, uid, context=context).id
-
+
return {
'name': 'Your Company',
'view_type': 'form',
@@ -50,5 +50,28 @@ class base_config_settings(osv.osv_memory):
'view_id': False,
'type': 'ir.actions.act_window',
}
-
+
+# Preferences wizard for Sales & CRM.
+# It is defined here because it is inherited independently in modules sale, crm,
+# plugin_outlook and plugin_thunderbird.
+class sale_config_settings(osv.osv_memory):
+ _name = 'sale.config.settings'
+ _inherit = 'res.config.settings'
+ _columns = {
+ 'module_crm': fields.boolean('CRM'),
+ 'module_plugin_thunderbird': fields.boolean('Thunderbird Plugin',
+ help="""The plugin allows you archive email and its attachments to the selected
+ OpenERP objects. You can select a partner, or a lead and
+ attach the selected mail as a .eml file in
+ the attachment of a selected record. You can create documents for CRM Lead,
+ Partner from the selected emails.
+ This installs the module plugin_thunderbird."""),
+ 'module_plugin_outlook': fields.boolean('Outlook Plugin',
+ help="""The Outlook plugin allows you to select an object that you would like to add
+ to your email and its attachments from MS Outlook. You can select a partner,
+ or a lead object and archive a selected
+ email into an OpenERP mail message with attachments.
+ This installs the module plugin_outlook."""),
+ }
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/base_setup/res_config_view.xml b/addons/base_setup/res_config_view.xml
index 5707dac82e9..81f83a1dde1 100644
--- a/addons/base_setup/res_config_view.xml
+++ b/addons/base_setup/res_config_view.xml
@@ -43,5 +43,38 @@
+
+
+ sale settings
+ sale.config.settings
+ form
+
+
+
+
+
+
+ Configure Sales
+ ir.actions.act_window
+ sale.config.settings
+
+ form
+ inline
+
+
diff --git a/addons/crm/res_config_view.xml b/addons/crm/res_config_view.xml
index 53cdb0a873c..daa598de96c 100644
--- a/addons/crm/res_config_view.xml
+++ b/addons/crm/res_config_view.xml
@@ -6,7 +6,7 @@
crm settings
sale.config.settings
form
-
+
@@ -31,7 +31,7 @@
+ sequence="1" action="base_setup.action_sale_config"/>
diff --git a/addons/crm_claim/res_config_view.xml b/addons/crm_claim/res_config_view.xml
index 865eb6d4769..39674a1fdd1 100644
--- a/addons/crm_claim/res_config_view.xml
+++ b/addons/crm_claim/res_config_view.xml
@@ -6,7 +6,7 @@
crm_claim settings
sale.config.settings
form
-
+
diff --git a/addons/plugin_outlook/plugin_outlook.xml b/addons/plugin_outlook/plugin_outlook.xml
index ada4aa2981e..c66f90b27d9 100644
--- a/addons/plugin_outlook/plugin_outlook.xml
+++ b/addons/plugin_outlook/plugin_outlook.xml
@@ -50,7 +50,7 @@
Sales Application
sale.config.settings
form
-
+
diff --git a/addons/plugin_thunderbird/plugin_thunderbird.xml b/addons/plugin_thunderbird/plugin_thunderbird.xml
index 97038214fab..e975b9d270a 100644
--- a/addons/plugin_thunderbird/plugin_thunderbird.xml
+++ b/addons/plugin_thunderbird/plugin_thunderbird.xml
@@ -48,13 +48,13 @@
form
new
-
+
Sales Application
sale.config.settings
form
-
+
diff --git a/addons/sale/res_config_view.xml b/addons/sale/res_config_view.xml
index 4a3773691b2..5b2e9269491 100644
--- a/addons/sale/res_config_view.xml
+++ b/addons/sale/res_config_view.xml
@@ -6,7 +6,7 @@
sale settings
sale.config.settings
form
-
+
@@ -21,7 +21,7 @@
-
+
@@ -34,7 +34,7 @@
-
+
@@ -44,7 +44,7 @@
+ sequence="1" action="base_setup.action_sale_config"/>
account settings