[IMP] optimize code

bzr revid: rma@tinyerp.com-20130826121505-ags8sgw4ufixc9fl
This commit is contained in:
Randhir Mayatra (OpenERP) 2013-08-26 17:45:05 +05:30
parent 7a0bec149a
commit dc500465de
2 changed files with 8 additions and 8 deletions

View File

@ -124,8 +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")).picking_ids[0]
order.do_partial(context=context)
picking_id = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001")).picking_ids[0]
picking_id.do_partial(context=context)
-
I check the Stock Interim account (Received) is credited successfully.
-
@ -216,8 +216,8 @@
I process the delivery.
-
!python {model: stock.picking}: |
pick_order = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001"))
pick_order.do_partial(context=context)
picking = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001"))
picking.do_partial(context=context)
-
I check Stock Interim account (Delivery) is debited successfully.
-

View File

@ -132,8 +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")).picking_ids[0]
order.do_partial(context=context)
picking_id = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001_fifo")).picking_ids[0]
picking_id.do_partial(context=context)
-
I check the Stock Interim account (Received) is credit successfully.
-
@ -216,8 +216,8 @@
I process the delivery.
-
!python {model: stock.picking}: |
pick_order = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001_fifo"))
pick_order.do_partial(context=context)
picking = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001_fifo"))
picking.do_partial(context=context)
-
I check Stock Interim account (Delivery) is debited successfully.
-