[IMP] remove stock.pack.operation opeartion on do_partial

bzr revid: rma@tinyerp.com-20130814060417-b5rggizg5lgzsk2w
This commit is contained in:
Randhir Mayatra (OpenERP) 2013-08-14 11:34:17 +05:30
parent f276099218
commit dfeb8597fd
2 changed files with 4 additions and 23 deletions

View File

@ -124,14 +124,8 @@
Reception is ready for process so now done the reception.
-
!python {model: stock.picking}: |
order = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001"))
for pick in order.picking_ids:
self.pool.get('stock.pack.operation').create(cr, uid, {
'picking_id': pick.id,
'product_qty': 1
})
pick.do_partial(context=context)
order = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001")).picking_ids[0]
order.do_partial(context=context)
-
I check the Stock Interim account (Received) is credited successfully.
-
@ -223,10 +217,6 @@
-
!python {model: stock.picking}: |
pick_order = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001"))
self.pool.get('stock.pack.operation').create(cr, uid, {
'picking_id': pick_order.id,
'product_qty': 1
})
pick_order.do_partial(context=context)
-
I check Stock Interim account (Delivery) is debited successfully.

View File

@ -132,13 +132,8 @@
Reception is ready for process so now done the reception.
-
!python {model: stock.picking}: |
order = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001_fifo"))
for pick in order.picking_ids:
self.pool.get('stock.pack.operation').create(cr, uid, {
'picking_id': pick.id,
'product_qty': 1
})
pick.do_partial(context=context)
order = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001_fifo")).picking_ids[0]
order.do_partial(context=context)
-
I check the Stock Interim account (Received) is credit successfully.
-
@ -222,10 +217,6 @@
-
!python {model: stock.picking}: |
pick_order = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001_fifo"))
self.pool.get('stock.pack.operation').create(cr, uid, {
'picking_id': pick_order.id,
'product_qty': 1
})
pick_order.do_partial(context=context)
-
I check Stock Interim account (Delivery) is debited successfully.