[FIX] marketing_campaign: avoid exception when resource linked to workitem was deleted
bzr revid: odo@openerp.com-20110312011401-qy5lmffp4owfsxf6
This commit is contained in:
parent
d5129c1eeb
commit
488200e0c9
|
@ -560,6 +560,8 @@ class marketing_campaign_workitem(osv.osv):
|
|||
continue
|
||||
|
||||
proxy = self.pool.get(wi.object_id.model)
|
||||
if not proxy.exists(cr, uid, [wi.res_id]):
|
||||
continue
|
||||
ng = proxy.name_get(cr, uid, [wi.res_id], context=context)
|
||||
if ng:
|
||||
res[wi.id] = ng[0][1]
|
||||
|
|
Loading…
Reference in New Issue