[IMP] improve anglo_saxon_yml
bzr revid: rma@tinyerp.com-20130813072714-7apay9hbt5m0ja6o
This commit is contained in:
parent
bbf8ca67fa
commit
ea891054bc
|
@ -202,7 +202,7 @@
|
|||
product_uom: product.product_uom_unit
|
||||
location_dest_id: stock.stock_location_customers
|
||||
move_type: direct
|
||||
picking_type_id: 1
|
||||
picking_type_id: self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'picking_type_out', context=context).id
|
||||
-
|
||||
I need to check the availability of the product, So I make my picking order for processing later.
|
||||
-
|
||||
|
@ -213,20 +213,21 @@
|
|||
I check the product availability, Product is available in the stock and ready to be sent.
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
self.action_confirm(cr, uid, [ref('stock_picking_out001')], context=context)
|
||||
picking = self.browse(cr, uid, ref("stock_picking_out001"))
|
||||
assert picking.state == "confirmed", "Picking should be confirmed."
|
||||
for move_line in picking.move_lines:
|
||||
assert move_line.state == "confirmed", "Move should be confirmed."
|
||||
|
||||
-
|
||||
I process the delivery.
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
order = self.pool.get('purchase.order').browse(cr, uid, ref("purchase_order_001"))
|
||||
pick_order = self.pool.get('stock.picking').browse(cr, uid, ref("stock_picking_out001"))
|
||||
for pick in pick_order.picking_ids:
|
||||
self.pool.get('stock.pack.operation').create(cr, uid, {
|
||||
'picking_id': pick.id,
|
||||
'product_qty': 1
|
||||
self.pool.get('stock.pack.operation').create(cr, uid, {
|
||||
'picking_id': pick_order.id,
|
||||
'product_qty': 1
|
||||
})
|
||||
pick.do_partial(context=context)
|
||||
pick_order.do_partial(context=context)
|
||||
-
|
||||
I check Stock Interim account (Delivery) is debited successfully.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue