[FIX] stock: options of stock.inventory fixed
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 20 Jan 2014 14:49:58 +0000 (15:49 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 20 Jan 2014 14:49:58 +0000 (15:49 +0100)
bzr revid: qdp-launchpad@openerp.com-20140120144958-daar59hcl7elejm5

addons/stock/stock.py

index 062dd5e..e9895b8 100644 (file)
@@ -1996,7 +1996,7 @@ class stock_inventory(osv.osv):
            :rtype: list of tuple
         """
         #default available choices
-        res_filter = [('none', ' All products of a whole location'), ('product', 'One product only')]
+        res_filter = [('none', _('All products of a whole location')), ('product', _('One product only'))]
         settings_obj = self.pool.get('stock.config.settings')
         config_ids = settings_obj.search(cr, uid, [], limit=1, order='id DESC', context=context)
         #If we don't have updated config until now, all fields are by default false and so should be not dipslayed
@@ -2007,9 +2007,9 @@ class stock_inventory(osv.osv):
         if stock_settings.group_stock_tracking_owner:
             res_filter.append(('owner', _('One owner only')))
             res_filter.append(('product_owner', _('One product for a specific owner')))
-        if stock_settings.group_stock_production_lot:
-            res_filter.append(('lot', _('One Lot/Serial Number')))
         if stock_settings.group_stock_tracking_lot:
+            res_filter.append(('lot', _('One Lot/Serial Number')))
+        if stock_settings.group_stock_packaging:
             res_filter.append(('pack', _('A Pack')))
         return res_filter