diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml
index d894ed75917..a9713776b4f 100644
--- a/addons/purchase/report/order.rml
+++ b/addons/purchase/report/order.rml
@@ -98,6 +98,8 @@
+
+
@@ -153,13 +155,13 @@
[[ repeatIn(o.dest_address_id and [o.dest_address_id] or [],'addr') ]]
Shipping address :
- [[ addr.partner_id.name ]]
- [[ addr.title or '' ]] [[ addr.name ]]
- [[ addr.street ]]
- [[ addr.street2 or '' ]]
- [[ addr.zip or '' ]] [[ addr.city or '' ]]
- [[ addr.state_id and addr.state_id.name or '' ]]
- [[ addr.country_id and addr.country_id.name or '' ]]
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
+ [[ addr.title or '' ]] [[ addr.name ]]
+ [[ addr.street ]]
+ [[ addr.street2 or '' ]]
+ [[ addr.zip or '' ]] [[ addr.city or '' ]]
+ [[ addr.state_id and addr.state_id.name or '' ]]
+ [[ addr.country_id and addr.country_id.name or '' ]]
|
@@ -180,12 +182,12 @@
[[ o.partner_address_id.zip or '' ]] [[ o.partner_address_id.city or '' ]]
[[ o.partner_address_id.state_id and o.partner_address_id.state_id.name or '' ]]
[[ o.partner_address_id.country_id and o.partner_address_id.country_id.name or '' ]]
-
+
- Tél. : [[ o.partner_address_id.phone or '' ]]
- Fax : [[ o.partner_address_id.fax or '' ]]
- TVA : [[ o.partner_id.vat or '' ]]
+ Tél. : [[ o.partner_address_id.phone or '' ]]
+ Fax : [[ o.partner_address_id.fax or '' ]]
+ TVA : [[ o.partner_id.vat or '' ]]
@@ -198,7 +200,8 @@
- [[ o.state<>'draft' and 'Purchase Order Confirmation' or 'Request for Quotation' ]] N° [[ o.name ]]
+ [[ o.state=='draft' and removeParentNode('para') ]] Purchase Order Confirmation N° [[ o.name ]]
+ [[ o.state<>'draft' and removeParentNode('para') ]] Request for Quotation N° [[ o.name ]]
@@ -237,7 +240,7 @@
-
+
Description
@@ -261,7 +264,7 @@
[[repeatIn(o.order_line,'line')]]
-
+
|
[[ line.name ]]
diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml
index 0355f55431f..c8607eabf6f 100644
--- a/addons/sale/report/order.rml
+++ b/addons/sale/report/order.rml
@@ -175,7 +175,8 @@
- [[ o.state<>'draft' and 'Order' or 'Quotation' ]] N° [[ o.name ]]
+ [[ o.state=='draft' and removeParentNode('para') ]] Order N° [[ o.name ]]
+ [[ o.state<>'draft' and removeParentNode('para') ]] Quotation N° [[ o.name ]]
| |