diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-03-29 15:34:22 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-03-29 15:34:22 +0200 |
| commit | fc01002f92166c021c0ca638a2a07ea7605532f2 (patch) | |
| tree | b9ae298097b41ba811e76ac9deb9d98353f2518c | |
| parent | 29ffff19eac3d25366d19686e09dc7e20489f319 (diff) | |
| parent | 65d2c896b01372cb03c3ea4e6c202250c01b032c (diff) | |
[MERGE] lp:740134
bzr revid: qdp-launchpad@openerp.com-20110329133422-ejz6qpmfouaaf500
| -rw-r--r-- | addons/account/invoice.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 269a4a0c0f4..e14a41ce448 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1609,7 +1609,17 @@ class res_partner(osv.osv): _columns = { 'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices', readonly=True), } - + + def copy(self, cr, uid, id, default=None, context=None): + if default is None: + default = {} + + if context is None: + context = {} + + default.update({'invoice_ids' : []}) + return super(res_partner, self).copy(cr, uid, id, default, context) + res_partner() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
