[FIX] Account: Problem for duplicating a record
bzr revid: skh@tinyerp.com-20110329101109-8nuny0wmrsooroxa
This commit is contained in:
parent
c5fbe2198f
commit
d38f743abb
|
@ -1610,6 +1610,9 @@ class res_partner(osv.osv):
|
|||
'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices', readonly=True),
|
||||
}
|
||||
|
||||
def copy(self, cr, uid, id, default={}, context={}):
|
||||
default.update({'invoice_ids' : False})
|
||||
return super(res_partner, self).copy(cr, uid, id, default, context)
|
||||
|
||||
res_partner()
|
||||
|
||||
|
|
Loading…
Reference in New Issue