From feaae64ba2f183fa680215b0ce22a4e3580b6031 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 7 Jul 2011 17:46:46 +0530 Subject: [PATCH 1/2] [FIX] sale_layout: Report Order with layout aborted if lines type Note or Page break lp bug: https://launchpad.net/bugs/802410 fixed bzr revid: ara@tinyerp.com-20110707121646-qxscon9vg5whdn2h --- .../sale_layout/report/report_sale_layout.rml | 30 +------------------ addons/sale_layout/sale_layout_view.xml | 2 +- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/addons/sale_layout/report/report_sale_layout.rml b/addons/sale_layout/report/report_sale_layout.rml index 941df09aeb5..dfd0223f2a7 100644 --- a/addons/sale_layout/report/report_sale_layout.rml +++ b/addons/sale_layout/report/report_sale_layout.rml @@ -133,31 +133,6 @@ - - - - - - Description - - - VAT - - - Quantity - - - Unit Price - - - Disc.(%) - - - Price - - - - [[repeatIn(objects,'o')]] [[ setLang(o.partner_id.lang) ]] @@ -275,9 +250,7 @@ - - [[ a['layout_type']=='text' and removeParentNode('blockTable')]] - + [[ a['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'] ]] @@ -396,6 +369,5 @@ - \ No newline at end of file diff --git a/addons/sale_layout/sale_layout_view.xml b/addons/sale_layout/sale_layout_view.xml index 6dee4ddd62f..81d9af4ce73 100644 --- a/addons/sale_layout/sale_layout_view.xml +++ b/addons/sale_layout/sale_layout_view.xml @@ -44,7 +44,7 @@ - + From d6c416787b6dd229ae3875aed6f9d9beeb2bff93 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Mon, 18 Jul 2011 12:14:21 +0530 Subject: [PATCH 2/2] [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'] ]]