[FIX] purchase: wrong call to super

opw-675480
This commit is contained in:
Nicolas Martinelli 2016-05-30 11:24:10 +02:00
parent 89d44e9c8a
commit 63ca2d1b9f
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ class purchase_order(osv.osv):
def copy(self, cr, uid, id, default=None, context=None):
# FORWARDPORT UP TO SAAS-6
new_id = super(purchase_order, self).copy(cr, uid, id, context=context)
new_id = super(purchase_order, self).copy(cr, uid, id, default=default, context=context)
for po in self.browse(cr, uid, [new_id], context=context):
for line in po.order_line:
vals = self.pool.get('purchase.order.line').onchange_product_id(