diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml index d945dc1802f..8f05fcc0483 100644 --- a/addons/purchase/report/order.rml +++ b/addons/purchase/report/order.rml @@ -198,7 +198,7 @@ - [[ (o.state=='draft' or removeParentNode('font')) and 'Request for Quotation' ]] [[ (o.state<>'draft' or removeParentNode('font')) and 'Purchase Order Confirmation' ]] N° [[ o.name ]] + [[ (o.state=='draft' or removeParentNode('font')) and 'Request for Quotation' ]] [[ (o.state<>'draft' or removeParentNode('font')) and 'Purchase Order Confirmation' ]] N° [[ o.name ]] diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index 203ccf64fee..a6ab25e8bc1 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -94,19 +94,19 @@ - - + + - + - - + + @@ -115,14 +115,11 @@ + - [[ repeatIn(objects,'picking') ]] - - - - + [[ repeatIn(objects,'picking') ]] @@ -134,24 +131,21 @@ - [[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]][[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]] - [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]][[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]] - [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.street) or '' ]] - [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.zip) or '' ]][[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.city) or '' ]][[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]] + [[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]] [[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]] + [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]] + [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.street) or '' ]] + [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.zip) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.city) or '' ]] [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]] [[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]] - + - + - - - - + @@ -164,6 +158,9 @@ + + + @@ -186,20 +183,20 @@ [[ picking.origin ]] - [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]][[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]] + [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ (picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]] - [[ formatLang(picking.min_date,date_time = True) ]] + [[ formatLang(picking.min_date,date_time = True) ]] - [[ formatLang(picking.weight) ]] + [[ picking.weight or '']] - + Description @@ -223,25 +220,25 @@
[[ 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.prodlot_id and move_lines.prodlot_id.name) or '' ]] + [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] [[ move_lines.state ]] - [[ formatLang(move_lines.product_qty) ]] + [[ move_lines.product_qty ]] - [[ move_lines.product_uom.name ]] + [[ move_lines.product_uom.name ]] - [[ (((picking.type == 'out') and move_lines.location_id.name) or ((picking.type == 'in') and move_lines.location_dest_id.name) or ((picking.type == 'internal') and (move_lines.location_id.name + '-' + move_lines.location_dest_id.name)) or '' ) ]] + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] @@ -249,34 +246,34 @@
- + - Non Assigned Products: [[ ((line.state == 'assigned') or (line.state == 'done')) and removeParentNode('para') ]] - + Non Assigned Products: [[ (line.state == 'assigned') and removeParentNode('para') ]] +
- [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]] - + [[ 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.prodlot_id and move_lines.prodlot_id.name) or '' ]] + [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] [[ move_lines.state ]] - [[ formatLang(move_lines.product_qty) ]] + [[ move_lines.product_qty ]] - [[ move_lines.product_uom.name ]] + [[ move_lines.product_uom.name ]] - [[ (((picking.type == 'out') and move_lines.location_id.name) or ((picking.type == 'in') and move_lines.location_dest_id.name) or ((picking.type == 'internal') and (move_lines.location_id.name + '-' + move_lines.location_dest_id.name)) or '' ) ]] + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] @@ -290,14 +287,5 @@ - - - - - - - - -