diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index 931b4c002ea..2844ce90e17 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -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:
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 487c97cdd2a..d5bf29f5c4e 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -130,7 +130,6 @@
-
diff --git a/addons/stock/test/inventory.yml b/addons/stock/test/inventory.yml
index f4e7d0533dd..f7ca195fc52 100644
--- a/addons/stock/test/inventory.yml
+++ b/addons/stock/test/inventory.yml
@@ -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,)