From a71d60768b052fb78c697c1965b002e36b73688f Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Thu, 9 Sep 2010 16:43:50 +0530 Subject: [PATCH] [FIX]:account,account_invoice_layout: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accounting/Customers/Customer Invoices/ Print Invoice * there is not data in first table then it should not dispaly data .so table row too small without data.take space if not data in the row. * The currency code is missing on the value(Price column) Accounting/Customers/Customer Invoices/ Print Invoice with layout * server crash when run the report * Display currency symbol (€) instead of currency name (EUR) * wrong address format * there is not data in first table then it should not dispaly data .so table row too small without data.take space if not data in the row. Accounting/Customers/Customer Invoices/ Print Invoice with layout with message * server crash when run the report * Display currency symbol (€) instead of currency name (EUR) * wrong address format * there is not data in first table then it should not dispaly data .So table row too small without data.put space if not data in the row. bzr revid: apa@tinyerp.com-20100909111350-ngfp96uugw611une --- addons/account/report/invoice.rml | 4 +- .../report/report_account_invoice_layout.py | 6 +- .../report/report_account_invoice_layout.rml | 147 +++++++----------- .../report/special_message_invoice.py | 6 +- .../report/special_message_invoice.rml | 145 +++++++---------- 5 files changed, 117 insertions(+), 191 deletions(-) diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index e13d5097951..0d4423c8bb6 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -240,7 +240,7 @@ - [[ o.name or ' ' ]] + [[ o.name or ' ' ]] [[ formatLang(o.date_invoice,date=True) ]] @@ -271,7 +271,7 @@ Disc.(%) - Price + Price([[ o.currency_id.code ]]) diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.py b/addons/account_invoice_layout/report/report_account_invoice_layout.py index 54c0daadb79..e28d98479b1 100644 --- a/addons/account_invoice_layout/report/report_account_invoice_layout.py +++ b/addons/account_invoice_layout/report/report_account_invoice_layout.py @@ -74,7 +74,7 @@ class account_invoice_1(report_sxw.rml_parse): sub_total[i]=entry.price_subtotal i=i+1 res['note']=entry.note - res['currency']=invoice.currency_id.code + res['currency']=invoice.currency_id.symbol res['type']=entry.state if entry.uos_id.id==False: @@ -107,7 +107,7 @@ class account_invoice_1(report_sxw.rml_parse): j=j+1 res['price_subtotal']="%.2f"%(sum) - res['currency']=invoice.currency_id.code + res['currency']=invoice.currency_id.symbol res['quantity']='' res['price_unit']='' res['discount']='' @@ -138,7 +138,7 @@ class account_invoice_1(report_sxw.rml_parse): else: res['name']=entry.name res['price_subtotal']='' - res['currency']=invoice.currency_id.code + res['currency']=invoice.currency_id.symbol result.append(res) return result diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.rml b/addons/account_invoice_layout/report/report_account_invoice_layout.rml index d215b431efa..b9eacf51842 100644 --- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml +++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml @@ -1,6 +1,6 @@ -