From 911023592a596f5cb688ed4f01df9cd4568ba8e1 Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Mon, 2 Aug 2010 19:10:03 +0530 Subject: [PATCH] [IMP] stock: If the product has no code, it should not display [] product_name. bzr revid: uco@tinyerp.com-20100802134003-1zlzvb0syr0uznl9 --- addons/stock/report/picking.rml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index ef60a79bb66..c5b4237a1d8 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -245,7 +245,7 @@ - [ [[ move_lines.product_id.default_code ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] + [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] @@ -277,7 +277,7 @@ - [ [[ move_lines.product_id.default_code ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] + [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]