[IMP] improved yml test case and fixed error of reservation_id
bzr revid: tpa@tinyerp.com-20130830060916-jdkvltonayv503kd
This commit is contained in:
@@ -1485,7 +1485,7 @@ class stock_move(osv.osv):
|
||||
# quant_obj.quants_move(cr, uid, quants, move, location_dest_id, context=context)
|
||||
# should replace the above 2 lines
|
||||
domain = ['|', ('reservation_id', '=', False), ('reservation_id', '=', move.id)]
|
||||
prefered_order = 'reservation_id<>' + str(move.id)
|
||||
prefered_order = 'reservation_id <> ' + str(move.id)
|
||||
# if lot_id:
|
||||
# prefered_order = 'lot_id<>' + lot_id + ", " + prefered_order
|
||||
# if pack_id:
|
||||
|
||||
@@ -130,7 +130,6 @@
|
||||
<field name="package_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="move_ids_exist" invisible="1"/>
|
||||
<notebook attrs="{'invisible':[('state','=','draft')]}">
|
||||
<page string="Inventory Details" >
|
||||
<button name="set_checked_qty" states="confirm" icon="gtk-go-forward" string="Set Checked Quantity to 0" type="object" class="oe_link oe_right" groups="stock.group_stock_user"/>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
product_qty: 10
|
||||
location_id: stock.stock_location_14
|
||||
-
|
||||
I confirm this inventory
|
||||
I Validate this inventory
|
||||
-
|
||||
!python {model: stock.inventory}: |
|
||||
self.action_done(cr, uid, [ref('inventory_test0')], context=context)
|
||||
@@ -62,9 +62,9 @@
|
||||
inventory_id: stock.inventory_test1
|
||||
product_id: product.product_product_3
|
||||
product_qty: 20
|
||||
location_id: stock.stock_location_14
|
||||
location_id: stock.stock_location_components
|
||||
-
|
||||
I confirm this inventory
|
||||
I Validate this inventory
|
||||
-
|
||||
!python {model: stock.inventory}: |
|
||||
self.action_done(cr, uid, [ref('inventory_test1')], context=context)
|
||||
@@ -72,6 +72,6 @@
|
||||
I check that the quantity on hand is 20 on the location and it's parent.
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
context['location'] = ref('stock.stock_location_14')
|
||||
context['location'] = ref('stock.stock_location_components')
|
||||
product = self.browse(cr, uid, ref('product.product_product_3'), context=context)
|
||||
assert product.qty_available==20, 'Expecting 20 products, got %.2f on location stock_location_14!' % (product.qty_available,)
|
||||
assert product.qty_available==20, 'Expecting 20 products, got %.2f on location stock_location_components!' % (product.qty_available,)
|
||||
|
||||
Reference in New Issue
Block a user