[FIX] marketing_campaign : Fix the problem when duplicate the partner workitem of this partner is also duplicated
lp bug: https://launchpad.net/bugs/1002456 fixed bzr revid: amp@tinyerp.com-20120522051416-g5wq0t6kj2wgm8sj
This commit is contained in:
parent
c31a54334c
commit
bd72fd7d2f
|
@ -30,6 +30,12 @@ class res_partner(osv.osv):
|
|||
readonly=True),
|
||||
}
|
||||
|
||||
def copy(self, cr, uid, id, default={}, context=None):
|
||||
default.update({
|
||||
'workitem_ids': [],
|
||||
})
|
||||
return super(res_partner, self).copy(cr, uid, id, default=default, context=context)
|
||||
|
||||
res_partner()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue