[FIX] crm: for crm.lead, force orm 'default_get' to avoid misbehaviour when 'base_contact' is installed
bzr revid: xal@openerp.com-20120327140525-my45t6cc7kiy043a
This commit is contained in:
parent
ea92c69a0f
commit
7cd37e488f
|
@ -68,6 +68,11 @@ class crm_lead(crm_case, osv.osv):
|
|||
return [(r['id'], tools.ustr(r[self._rec_name]))
|
||||
for r in self.read(cr, user, ids, [self._rec_name], context)]
|
||||
|
||||
# overridden because if 'base_contact' is installed - their default_get() will remove
|
||||
# 'default_type' from context making it impossible to record an 'opportunity'
|
||||
def default_get(self, cr, uid, fields_list, context=None):
|
||||
return super(osv.osv, self).default_get(cr, uid, fields_list, context=context)
|
||||
|
||||
def _compute_day(self, cr, uid, ids, fields, args, context=None):
|
||||
"""
|
||||
@param cr: the current row, from the database cursor,
|
||||
|
|
Loading…
Reference in New Issue