diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index c5fb3c3c0eb..f56ed5e21f7 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -1696,10 +1696,10 @@ class stock_inventory(osv.osv):
'state': fields.selection([('draft', 'Draft'), ('cancel', 'Cancelled'), ('confirm', 'In Progress'), ('done', 'Validated')], 'Status', readonly=True, select=True),
'company_id': fields.many2one('res.company', 'Company', required=True, select=True, readonly=True, states={'draft': [('readonly', False)]}),
'location_id': fields.many2one('stock.location', 'Location', required=True),
- 'product_id': fields.many2one('product.product', 'Product', help="Product Name"),
- 'package_id': fields.many2one('stock.quant.package', 'Pack'),
- 'partner_id': fields.many2one('res.partner', 'Owner'),
- 'lot_id': fields.many2one('stock.production.lot', 'Lot/Serial Number', help="Forces to specify a Serial Number for all moves generated by Inventoty"),
+ 'product_id': fields.many2one('product.product', 'Product', help="Select Product to Specify filters to focus your inventory a on particular product"),
+ 'package_id': fields.many2one('stock.quant.package', 'Pack', help="Select Pack to Specify filters to focus your inventory a on particular Pack"),
+ 'partner_id': fields.many2one('res.partner', 'Owner', help="Select Owner to Specify filters to focus your inventory a on particular Owner"),
+ 'lot_id': fields.many2one('stock.production.lot', 'Lot/Serial Number', help="Select Lot/Serial Number to Specify filters to focus your inventory a on particular Lot/Serial Number"),
'move_ids_exist': fields.function(_get_move_ids_exist, type='boolean', string=' Stock Move Exists?', help='technical field for attrs in view'),
}
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 5ac6345d82f..cddd99ae0e5 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -104,7 +104,7 @@
-
+
@@ -131,7 +131,7 @@
-
+
@@ -139,7 +139,7 @@
-
+
diff --git a/addons/stock/test/inventory.yml b/addons/stock/test/inventory.yml
index d52df2c2d90..1a397c7d093 100644
--- a/addons/stock/test/inventory.yml
+++ b/addons/stock/test/inventory.yml
@@ -1,9 +1,9 @@
-
In order to test the inventory, I create a new product
-
- !record {model: product.product, id: inventory_product}:
- name: inventory prod
- type: product
+ !record {model: product.product, id: inventory_product}:
+ name: inventory prod
+ type: product
-
I create an inventory for this product only
-
@@ -67,8 +67,8 @@
self.prepare_inventory(cr, uid, [ref('inventory_test1')], context=context)
inv = self.browse(cr, uid, ref('inventory_test1'), context=context)
assert inv.line_ids and len(inv.line_ids) == 1, "Wrong number of inventory lines."
- assert len(inv.line_ids[0].product_qty) == 10, "Wrong quantity in inventory line."
- assert len(inv.line_ids[0].product_id.id) == ref('inventory_product'), "Wrong product in inventory line."
+ assert inv.line_ids[0].product_qty == 10, "Wrong quantity in inventory line."
+ assert inv.line_ids[0].product_id.id == ref('inventory_product'), "Wrong product in inventory line."
-
I modify the inventory line and set the quantity to 20 product on this new inventory
-