diff options
| author | Divyesh Makwana (Open ERP) <mdi@tinyerp.com> | 2012-03-23 12:39:07 +0530 |
|---|---|---|
| committer | Divyesh Makwana (Open ERP) <mdi@tinyerp.com> | 2012-03-23 12:39:07 +0530 |
| commit | 8a3dec0f825c4dc1be44b2e3ceaeef6e286ffbfc (patch) | |
| tree | 67d9c8e952441e2f25d40621e9d8a827c9ac7ec3 | |
| parent | e0443ab7f8a9670ecf3dd4d05f30f59cd59d34c3 (diff) | |
[IMP] stock : Improved label string to translate at run time.
bzr revid: mdi@tinyerp.com-20120323070907-k1gpu8xz5g6vqznv
| -rw-r--r-- | addons/stock/stock.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py index b92e00133ef..243d440d4cd 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 |
