From f6b1d222348a30e2a795158de3d36062fda1308a Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 20 Jan 2014 15:49:58 +0100 Subject: [PATCH] [FIX] stock: options of stock.inventory fixed bzr revid: qdp-launchpad@openerp.com-20140120144958-daar59hcl7elejm5 --- addons/stock/stock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 062dd5efb10..e9895b8e718 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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