[REM] base_setup dead code
bzr revid: al@openerp.com-20120430143317-130o0hhpaqw7kwmp
This commit is contained in:
@@ -28,55 +28,7 @@ from osv import fields, osv
|
||||
from tools.translate import _
|
||||
from lxml import etree
|
||||
|
||||
#Migrate data from another application Conf wiz
|
||||
|
||||
class migrade_application_installer_modules(osv.osv_memory):
|
||||
_name = 'migrade.application.installer.modules'
|
||||
_inherit = 'res.config.installer'
|
||||
_columns = {
|
||||
'import_saleforce': fields.boolean('Import Saleforce',
|
||||
help="For Import Saleforce"),
|
||||
'import_sugarcrm': fields.boolean('Import Sugarcrm',
|
||||
help="For Import Sugarcrm"),
|
||||
'sync_google_contact': fields.boolean('Sync Google Contact',
|
||||
help="For Sync Google Contact"),
|
||||
'quickbooks_ippids': fields.boolean('Quickbooks Ippids',
|
||||
help="For Quickbooks Ippids"),
|
||||
}
|
||||
|
||||
class product_installer(osv.osv_memory):
|
||||
_name = 'product.installer'
|
||||
_inherit = 'res.config'
|
||||
_columns = {
|
||||
'customers': fields.selection([('create','Create'), ('import','Import')], 'Customers', size=32, required=True, help="Import or create customers"),
|
||||
}
|
||||
_defaults = {
|
||||
'customers': 'create',
|
||||
}
|
||||
|
||||
def execute(self, cr, uid, ids, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
val = self.browse(cr, uid, ids, context=context)[0]
|
||||
if val.customers == 'create':
|
||||
id2 = data_obj._get_id(cr, uid, 'base', 'view_partner_form')
|
||||
if id2:
|
||||
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
|
||||
return {
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'res.partner',
|
||||
'views': [(id2, 'form')],
|
||||
'type': 'ir.actions.act_window',
|
||||
'target': 'current',
|
||||
'nodestroy':False,
|
||||
}
|
||||
if val.customers == 'import':
|
||||
return {'type': 'ir.actions.act_window'}
|
||||
|
||||
# Define users preferences for new users (ir.values)
|
||||
|
||||
def _lang_get(self, cr, uid, context=None):
|
||||
obj = self.pool.get('res.lang')
|
||||
ids = obj.search(cr, uid, [('translatable','=',True)])
|
||||
@@ -130,8 +82,7 @@ class user_preferences_config(osv.osv_memory):
|
||||
ir_values_obj.set(cr, uid, 'default', False, 'menu_tips', ['res.users'], o.menu_tips)
|
||||
return {}
|
||||
|
||||
# Specify Your Terminology
|
||||
|
||||
# Specify Your Terminology will move to 'partner' module
|
||||
class specify_partner_terminology(osv.osv_memory):
|
||||
_name = 'base.setup.terminology'
|
||||
_inherit = 'res.config'
|
||||
@@ -201,12 +152,9 @@ 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'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Define default users preferences-->
|
||||
<record id="view_user_preferences_config_form" model="ir.ui.view">
|
||||
<field name="name">Set default users preferences</field>
|
||||
@@ -48,22 +47,6 @@
|
||||
<field name="type">once</field>
|
||||
</record>
|
||||
|
||||
<!-- Create Additional Users -->
|
||||
<record id="action_config_access_other_user" model="ir.actions.act_window">
|
||||
<field name="name">Create Additional Users</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.users</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" eval="False"/>
|
||||
</record>
|
||||
<record id="config_wizard_action_config_user_form" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_config_access_other_user"/>
|
||||
<field name="category_id" ref="base.category_administration_config"/>
|
||||
<field name="sequence">1000</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Specify Your Terminology Config Wiz-->
|
||||
<record id="base_setup_terminology_form" model="ir.ui.view">
|
||||
<field name="name">Specify Your Terminology</field>
|
||||
@@ -102,13 +85,6 @@
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
<!--
|
||||
<record id="config_action_partner_terminology_config_form" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_partner_terminology_config_form"/>
|
||||
<field name="category_id" ref="base.category_administration_config"/>
|
||||
<field name="type">once</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- Company config -->
|
||||
<record id="action_base_setup_company" model="ir.actions.act_window">
|
||||
@@ -140,7 +116,6 @@
|
||||
<sheet layout="auto">
|
||||
<group>
|
||||
<group name="config_sale" colspan="4"/>
|
||||
|
||||
<!-- this part is necessary to allow the plugins to extend the view -->
|
||||
<field name="module_crm" invisible="1"/>
|
||||
<group name="config_fetchmail" colspan="4" attrs="{'invisible': [('module_crm','=',False)]}">
|
||||
@@ -157,6 +132,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Sale config wizard -->
|
||||
<record id="base.action_sale_config" model="ir.actions.act_window">
|
||||
<field name="name">Configure Sales</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
|
||||
Reference in New Issue
Block a user