[FIX] stock: error in yaml test
bzr revid: qdp-launchpad@openerp.com-20131112165809-4a15uwgu0mmlf80k
This commit is contained in:
parent
d4cd737ee9
commit
9ca77ea0c0
|
@ -75,11 +75,17 @@
|
|||
location_id: location_refrigerator
|
||||
location_dest_id: location_delivery_counter
|
||||
-
|
||||
Create STOCK_MOVE for IN
|
||||
Create STOCK_PICKING for IN
|
||||
-
|
||||
!record {model: stock.picking, id: incomming_shipment}:
|
||||
picking_type_id: stock.picking_type_in
|
||||
origin: 'incomming_shipment for test'
|
||||
-
|
||||
!record {model: stock.move, id: incomming_shipment_icecream}:
|
||||
picking_id: stock.incomming_shipment
|
||||
product_id: product_icecream
|
||||
product_uom: product.product_uom_kgm
|
||||
product_uom_qty: 50.0
|
||||
picking_type_id: stock.picking_type_in
|
||||
location_id: location_convenience_shop
|
||||
location_dest_id: location_refrigerator
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
-
|
||||
Stock manager can only test whole process related to Shipment, so let's check data with stock manager.
|
||||
Stock manager can only test whole process related to Shipment, so we check data with stock manager.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_stock_manager'
|
||||
-
|
||||
I confirm incomming shipment of 50 kgm Ice-cream.
|
||||
I confirm incomming move of 50 kgm Ice-cream
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
self.action_confirm(cr, uid, [ref("incomming_shipment")])
|
||||
!python {model: stock.move}: |
|
||||
incomming_move = self.browse(cr, uid, ref("incomming_shipment_icecream"))
|
||||
self.action_confirm(cr, uid, [incomming_move.id])
|
||||
-
|
||||
I receive 40kgm Ice-cream so It will make backorder of incomming shipment for 10 kgm.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue