[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'
|
||||
|
||||
_columns = {
|
||||
'action': fields.selection([('exist', 'Link to an existing customer'), \
|
||||
('create', 'Create a new customer'), \
|
||||
('nothing', 'Do not link to a customer')], \
|
||||
'Related Customer', required=True),
|
||||
'name': fields.selection([('convert', 'Convert to opportunity'), \
|
||||
('merge', 'Merge with existing opportunities')], \
|
||||
'Conversion Action', required=True),
|
||||
'action': fields.selection([
|
||||
('exist', 'Link to an existing customer'),
|
||||
('create', 'Create a new customer'),
|
||||
('nothing', 'Do not link to a customer')
|
||||
], 'Related Customer', required=True),
|
||||
'name': fields.selection([
|
||||
('convert', 'Convert to opportunity'),
|
||||
('merge', 'Merge with existing opportunities')
|
||||
], 'Conversion Action', required=True),
|
||||
'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'
|
||||
|
||||
_columns = {
|
||||
'action': fields.selection([('exist', 'Link to an existing customer'), \
|
||||
('create', 'Create a new customer')], \
|
||||
'Action', required=True),
|
||||
'action': fields.selection([
|
||||
('exist', 'Link to an existing customer'),
|
||||
('create', 'Create a new customer')
|
||||
], 'Related Customer', required=True),
|
||||
'partner_id': fields.many2one('res.partner', 'Customer'),
|
||||
}
|
||||
|
||||
def view_init(self, cr, uid, fields, context=None):
|
||||
"""
|
||||
Check for precondition before wizard executes.
|
||||
|
|
Loading…
Reference in New Issue