[FIX] crm: typos
bzr revid: odo@openerp.com-20110907142331-56dn8svy0s4hysl0
This commit is contained in:
parent
2d87c2b12e
commit
9e1acb0c83
|
@ -353,16 +353,14 @@ class crm_lead(crm_case, osv.osv):
|
|||
if priority:
|
||||
vals['priority'] = priority
|
||||
vals.update(self.message_partner_by_email(cr, uid, msg.get('from', False)))
|
||||
res_id = self.write(cr, uid, [res_id], vals, context)
|
||||
self.write(cr, uid, [res_id], vals, context)
|
||||
return res_id
|
||||
|
||||
def message_update(self, cr, uid, ids, msg, vals={}, default_act='pending', context=None):
|
||||
if isinstance(ids, (str, int, long)):
|
||||
ids = [ids]
|
||||
|
||||
super(crm_lead, self).message_update(cr, uid, msg,
|
||||
custom_values=custom_values,
|
||||
context=context)
|
||||
super(crm_lead, self).message_update(cr, uid, ids, msg, context=context)
|
||||
|
||||
if msg.get('priority') in dict(crm.AVAILABLE_PRIORITIES):
|
||||
vals['priority'] = msg.get('priority')
|
||||
|
|
|
@ -162,7 +162,7 @@ class crm_claim(crm.crm_case, osv.osv):
|
|||
if isinstance(ids, (str, int, long)):
|
||||
ids = [ids]
|
||||
|
||||
res_id = super(crm_claim,self).message_update(cr, uid, msg, context=context)
|
||||
res_id = super(crm_claim,self).message_update(cr, uid, ids, msg, context=context)
|
||||
|
||||
if msg.get('priority') in dict(crm.AVAILABLE_PRIORITIES):
|
||||
vals['priority'] = msg.get('priority')
|
||||
|
|
|
@ -115,7 +115,7 @@ class crm_helpdesk(crm.crm_case, osv.osv):
|
|||
if isinstance(ids, (str, int, long)):
|
||||
ids = [ids]
|
||||
|
||||
super(crm_helpdesk,self).message_update(cr, uid, msg, context=context)
|
||||
super(crm_helpdesk,self).message_update(cr, uid, ids, msg, context=context)
|
||||
|
||||
if msg.get('priority') in dict(crm.AVAILABLE_PRIORITIES):
|
||||
vals['priority'] = msg.get('priority')
|
||||
|
|
Loading…
Reference in New Issue