From c5fbe2198f0111db569a00d403bc8f3dd919f4c1 Mon Sep 17 00:00:00 2001 From: skh Date: Mon, 28 Mar 2011 16:20:19 +0530 Subject: [PATCH] [FIX] Account: Problem for duplicating a record bzr revid: skh@tinyerp.com-20110328105019-0dlsdgg93l0rlje4 --- addons/account/invoice.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 21b4170388c..7f8c06b0d39 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1610,10 +1610,7 @@ 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() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: