From 2c3cb4219d9424679220c97ff531598886112436 Mon Sep 17 00:00:00 2001 From: Hardik Ansodariya Date: Mon, 25 Mar 2013 14:19:55 +0530 Subject: [PATCH] [FIX] stock: states on report delivery slip was not translated (Maintenance case:587561) bzr revid: han@tinyerp.com-20130325084955-8xqarstq2p1v2qiw --- addons/stock/i18n/stock.pot | 3 +++ addons/stock/report/picking.rml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index d56adda99db..4207af16cfd 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -462,6 +462,7 @@ msgstr "" #: selection:stock.picking,state:0 #: selection:stock.picking.in,state:0 #: selection:stock.picking.out,state:0 +#: report:stock.picking.list:0 msgid "Waiting Availability" msgstr "" @@ -471,6 +472,7 @@ msgstr "" #: selection:stock.move,state:0 #: view:stock.production.lot:0 #: field:stock.production.lot,stock_available:0 +#: report:stock.picking.list:0 msgid "Available" msgstr "" @@ -2999,6 +3001,7 @@ msgstr "" #: selection:stock.move,state:0 #: view:stock.picking:0 #: view:stock.picking.in:0 +#: report:stock.picking.list:0 msgid "Done" msgstr "" diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index e0788dcb966..0a17f56fc71 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -258,7 +258,9 @@ [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] - [[ move_lines.state ]] + Waiting Availability[[ move_lines.state == 'confirmed' and ' ' or removeParentNode('para') ]] + Done[[ move_lines.state == 'done' and ' ' or removeParentNode('para') ]] + Available[[ move_lines.state == 'assigned' and ' ' or removeParentNode('para') ]] [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]