parent
89d44e9c8a
commit
63ca2d1b9f
|
@ -365,7 +365,7 @@ class purchase_order(osv.osv):
|
||||||
|
|
||||||
def copy(self, cr, uid, id, default=None, context=None):
|
def copy(self, cr, uid, id, default=None, context=None):
|
||||||
# FORWARDPORT UP TO SAAS-6
|
# 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 po in self.browse(cr, uid, [new_id], context=context):
|
||||||
for line in po.order_line:
|
for line in po.order_line:
|
||||||
vals = self.pool.get('purchase.order.line').onchange_product_id(
|
vals = self.pool.get('purchase.order.line').onchange_product_id(
|
||||||
|
|
Loading…
Reference in New Issue