[IMP] indentation
bzr revid: abo@openerp.com-20121112101514-5da79d21g009t8o1
This commit is contained in:
parent
e641e33a41
commit
cccbbdfbb2
|
@ -30,13 +30,15 @@ class crm_lead2opportunity_partner(osv.osv_memory):
|
||||||
_inherit = 'crm.lead2partner'
|
_inherit = 'crm.lead2partner'
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
'action': fields.selection([('exist', 'Link to an existing customer'), \
|
'action': fields.selection([
|
||||||
('create', 'Create a new customer'), \
|
('exist', 'Link to an existing customer'),
|
||||||
('nothing', 'Do not link to a customer')], \
|
('create', 'Create a new customer'),
|
||||||
'Related Customer', required=True),
|
('nothing', 'Do not link to a customer')
|
||||||
'name': fields.selection([('convert', 'Convert to opportunity'), \
|
], 'Related Customer', required=True),
|
||||||
('merge', 'Merge with existing opportunities')], \
|
'name': fields.selection([
|
||||||
'Conversion Action', required=True),
|
('convert', 'Convert to opportunity'),
|
||||||
|
('merge', 'Merge with existing opportunities')
|
||||||
|
], 'Conversion Action', required=True),
|
||||||
'opportunity_ids': fields.many2many('crm.lead', string='Opportunities', domain=[('type', '=', 'opportunity')]),
|
'opportunity_ids': fields.many2many('crm.lead', string='Opportunities', domain=[('type', '=', 'opportunity')]),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,11 +28,13 @@ class crm_lead2partner(osv.osv_memory):
|
||||||
_description = 'Lead to Partner'
|
_description = 'Lead to Partner'
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
'action': fields.selection([('exist', 'Link to an existing customer'), \
|
'action': fields.selection([
|
||||||
('create', 'Create a new customer')], \
|
('exist', 'Link to an existing customer'),
|
||||||
'Action', required=True),
|
('create', 'Create a new customer')
|
||||||
|
], 'Related Customer', required=True),
|
||||||
'partner_id': fields.many2one('res.partner', 'Customer'),
|
'partner_id': fields.many2one('res.partner', 'Customer'),
|
||||||
}
|
}
|
||||||
|
|
||||||
def view_init(self, cr, uid, fields, context=None):
|
def view_init(self, cr, uid, fields, context=None):
|
||||||
"""
|
"""
|
||||||
Check for precondition before wizard executes.
|
Check for precondition before wizard executes.
|
||||||
|
|
Loading…
Reference in New Issue