From 8a3dec0f825c4dc1be44b2e3ceaeef6e286ffbfc Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Fri, 23 Mar 2012 12:39:07 +0530 Subject: [PATCH] [IMP] stock : Improved label string to translate at run time. bzr revid: mdi@tinyerp.com-20120323070907-k1gpu8xz5g6vqznv --- addons/stock/stock.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index b92e001..243d440 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1706,25 +1706,25 @@ class stock_move(osv.osv): res = super(stock_move, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) if type: for field in res['fields']: - # To update the states label according to shipping type + # To update the states label according to the containing shipping type if field == 'state': _state = [] for key, value in MOVE_STATE: if type == 'in': if key == 'assigned': - value = 'Ready to Receive' + value = _('Ready to Receive') elif key == 'done': - value = 'Received' + value = _('Received') elif type == 'internal': if key == 'assigned': - value = 'Ready to Move' + value = _('Ready to Transfer') elif key == 'done': - value = 'Moved' + value = _('Transferred') elif type == 'out': if key == 'assigned': - value = 'Ready to Deliver' + value = _('Ready to Deliver') elif key == 'done': - value = 'Delivered' + value = _('Delivered') _state.append((key,value)) res['fields']['state']['selection'] = _state return res -- 1.7.10.4