From d6c416787b6dd229ae3875aed6f9d9beeb2bff93 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Mon, 18 Jul 2011 12:14:21 +0530 Subject: [PATCH] [IMP] Report Order with layout aborted if lines type Note or Page break bzr revid: ara@tinyerp.com-20110718064421-j3n73azrncj9buey --- addons/sale_layout/report/report_sale_layout.py | 2 +- addons/sale_layout/report/report_sale_layout.rml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sale_layout/report/report_sale_layout.py b/addons/sale_layout/report/report_sale_layout.py index 57839ecffeb..62513d6d98f 100644 --- a/addons/sale_layout/report/report_sale_layout.py +++ b/addons/sale_layout/report/report_sale_layout.py @@ -67,7 +67,7 @@ class sale_order_1(report_sxw.rml_parse): sub_total[i] = entry.price_subtotal and entry.price_subtotal i = i + 1 res['note'] = entry.notes or '' - res['currency'] = sale_order.pricelist_id.currency_id.name + res['currency'] = sale_order.pricelist_id.currency_id.symbol res['layout_type'] = entry.layout_type else: res['product_uom_qty'] = '' diff --git a/addons/sale_layout/report/report_sale_layout.rml b/addons/sale_layout/report/report_sale_layout.rml index dfd0223f2a7..a0ccec0ab7b 100644 --- a/addons/sale_layout/report/report_sale_layout.rml +++ b/addons/sale_layout/report/report_sale_layout.rml @@ -250,7 +250,7 @@ - [[ a['type']=='text' and removeParentNode('blockTable')]] + [[ a['layout_type']=='text' and removeParentNode('blockTable')]] [[ (a['layout_type']=='title' or a['layout_type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'})) or removeParentNode('font') ]] [[ a['name'] ]] @@ -268,7 +268,7 @@ [[ a['layout_type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]] [[ formatLang(a['discount']) ]] - [[ a['layout_type']=='break' and removeParentNode('blockTable')]][[ a['layout_type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]] [[ formatLang(a['price_subtotal'], digits=get_digits(dp='Sale Price')) ]] [[ o.pricelist_id.currency_id.symbol ]] + [[ a['layout_type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]] [[ formatLang(a['price_subtotal'], digits=get_digits(dp='Sale Price')) ]] [[ a['currency'] ]]