[FIX] purchase: don't copy twice the PO line when copying a PO
lp bug: https://launchpad.net/bugs/1279365 fixed bzr revid: qdp-launchpad@openerp.com-20140214090934-4n4id411c6ekeowu
This commit is contained in:
@@ -970,7 +970,7 @@ class purchase_order_line(osv.osv):
|
||||
def copy_data(self, cr, uid, id, default=None, context=None):
|
||||
if not default:
|
||||
default = {}
|
||||
default.update({'state':'draft', 'move_ids':[],'invoiced':0,'invoice_lines':[]})
|
||||
default.update({'state':'draft', 'move_ids':[], 'invoiced':0, 'invoice_lines':[], 'procurement_ids': False})
|
||||
return super(purchase_order_line, self).copy_data(cr, uid, id, default, context)
|
||||
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
|
||||
Reference in New Issue
Block a user