From cc12ad96b171de6a97b2c4280ce42cddfda2aad1 Mon Sep 17 00:00:00 2001
From: ced <>
Date: Mon, 4 Jun 2007 11:14:04 +0000
Subject: [PATCH] SALE: fix translation of order/quotation
bzr revid: ced-d3ec7d16a322fe07cef9550c1fae941cae41e4c2
---
addons/sale/report/order.rml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml
index 04fde68916b..46443e4ad99 100644
--- a/addons/sale/report/order.rml
+++ b/addons/sale/report/order.rml
@@ -98,8 +98,8 @@
Invoice address :
- [[ o.partner_invoice_id.street ]][[ o.partner_invoice_id.street2 and ', %s' % o.partner_invoice_id.street2 or '' ]]
- [[ o.partner_invoice_id.zip or '' ]] [[ o.partner_invoice_id.city or '' ]] [[ ', %s' % (o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '') ]]
+ [[ o.partner_invoice_id.street ]][[ o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2 or '') ]]
+ [[ o.partner_invoice_id.zip or '' ]] [[ o.partner_invoice_id.city or '' ]] [[ o.partner_invoice_id.country_id and (', %s' % (o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '')) ]]
@@ -126,7 +126,8 @@
- [[ o.state=='draft' and 'Quotation ' or 'Order ' ]] N° : [[ o.name ]]
+ [[ o.state<>'draft' and removeParentNode('para') ]] Quotation N° : [[ o.name ]]
+ [[ o.state=='draft' and removeParentNode('para') ]] Order N° : [[ o.name ]]
|