From fa1990b532f9602beee7e955c0a61ab4d9299b66 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 5 Aug 2010 11:09:52 +0530 Subject: [PATCH] [Fix] stock : Fix the packing report bzr revid: sbh@tinyerp.com-20100805053952-8suzix8brrra4x8s --- addons/stock/report/packing.rml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/addons/stock/report/packing.rml b/addons/stock/report/packing.rml index 3db817996d9..7288615da6d 100644 --- a/addons/stock/report/packing.rml +++ b/addons/stock/report/packing.rml @@ -276,12 +276,11 @@ - [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('para') ]] - Non Assigned Products: [[ ( move_lines.state == 'assigned' or move_lines.state == 'done' or move_lines.state == 'confirmed' ) and removeParentNode('para') ]] - [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('para') ]] -
- [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]] + + [[ ([line for line in picking.move_lines if (line.state == 'draft' )]) and 'Non Assigned Products:' or removeParentNode('para') ]] +
+ [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]] [ [[ move_lines.product_id.default_code ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]