openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #04733
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-740134-skh into lp:openobject-addons
Somesh Khare(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-740134-skh into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-740134-skh/+merge/55302
Hello,
Fix: Problem for duplicating a record
Thanks,
SKH
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-740134-skh/+merge/55302
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-740134-skh.
=== modified file 'account/invoice.py'
--- account/invoice.py 2011-03-24 14:46:55 +0000
+++ account/invoice.py 2011-03-29 10:14:00 +0000
@@ -1609,7 +1609,11 @@
_columns = {
'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:
Follow ups