[FIX] crm_partner_assign, hr_recruitment: fixed 2 write using an int instead of list
bzr revid: tde@openerp.com-20120228151441-kow3r6nn96qn6w4q
This commit is contained in:
parent
9d4afb6659
commit
526281d470
|
@ -138,7 +138,7 @@ class crm_lead_forward_to_partner(osv.osv_memory):
|
|||
if email_to not in new_cc:
|
||||
new_cc.append(to)
|
||||
update_vals = {'email_cc' : ', '.join(new_cc) }
|
||||
lead.write(cr, uid, case.id, update_vals, context=context)
|
||||
lead.write(cr, uid, [case.id], update_vals, context=context)
|
||||
return res
|
||||
|
||||
def _get_info_body_text(self, cr, uid, lead, context=None):
|
||||
|
|
|
@ -68,7 +68,7 @@ class hr_recruitment_partner_create(osv.osv_memory):
|
|||
'email': case.email_from
|
||||
}, context=context)
|
||||
|
||||
case_obj.write(cr, uid, case.id, {
|
||||
case_obj.write(cr, uid, [case.id], {
|
||||
'partner_id': partner_id,
|
||||
'partner_address_id': contact_id
|
||||
}, context=context)
|
||||
|
@ -88,4 +88,4 @@ class hr_recruitment_partner_create(osv.osv_memory):
|
|||
|
||||
hr_recruitment_partner_create()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue