From b8054f84e7664bf611be8f0a30b547cc76690a28 Mon Sep 17 00:00:00 2001 From: nel <> Date: Tue, 1 Jul 2008 09:11:11 +0000 Subject: [PATCH] Ugly Sale Order bzr revid: nel-08dd6eb84a6654626ab6bb5ff6816b91dd348766 --- addons/sale/report/order.rml | 88 ++++++++++++++++++++++++++++-------- 1 file changed, 68 insertions(+), 20 deletions(-) diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index 0fcf2ab837f..90635a48a24 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -17,7 +17,9 @@ - + + + @@ -28,6 +30,7 @@ + @@ -36,11 +39,21 @@ + + + + + + + + + + @@ -70,8 +83,13 @@ - + + + + + + @@ -134,33 +152,61 @@ -Your Order Reference : [[ o.client_order_ref or '' ]] -Date Ordered : [[ o.date_order ]] -Our salesman : [[ o.user_id.name ]] - + + + +Your order reference + + +Date ordered + + +Our salesman + + +Payment + + + + +[[ o.client_order_ref ]] + + +[[ o.date_order ]] + + +[[ o.user_id.name ]] + + +[[ o.client_ref and o.client_ref.property_payment_term and o.client_ref.property_payment_term[0] and o.client_ref.property_payment_term[0].name ]] + + + + - + + Description -Taxes +Taxes -Quantity +Quantity -Unit Price +Unit Price - + Disc. (%) -Price +Price @@ -169,22 +215,22 @@ -[[ line.name ]] +[[ line.name ]] -[[ ', '.join(map(lambda x: x.name, line.tax_id))]] +[[ ', '.join(map(lambda x: x.name, line.tax_id))]] -[[ line.product_uos and line.product_uos_qty or line.product_uom_qty ]] [[ line.product_uos and line.product_uos.name or line.product_uom.name ]] +[[ line.product_uos and line.product_uos_qty or line.product_uom_qty ]] [[ line.product_uos and line.product_uos.name or line.product_uom.name ]] -[[ line.price_unit ]] +[[ line.price_unit ]] -[[ (line.discount and str(line.discount)+'%')or '' ]] +[[ (line.discount and str(line.discount)+'%')or '' ]] -[[ line.price_subtotal ]] +[[ line.price_subtotal ]] @@ -204,7 +250,7 @@ - + @@ -215,7 +261,9 @@ Net Total : -[[ o.amount_untaxed ]] [[ o.pricelist_id.currency_id.name ]] +[[ o.amount_untaxed ]] [[ o.pricelist_id.currency_id.name ]] + +