From 09c73a6177a5ea732d49fde4d747a572afae5d21 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Thu, 14 Nov 2013 10:13:13 +0100 Subject: [PATCH] [FIX]account_financial_report_webkit: Open Invoices Report: fix wrong xmlid in report definition, removed useless import of addons in template, hasattr cannot be used on browse object - replaced by 'field' in browse_object --- account_financial_report_webkit/report/report.xml | 2 +- .../report/templates/account_report_open_invoices.mako | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/account_financial_report_webkit/report/report.xml b/account_financial_report_webkit/report/report.xml index f617d0bd..6fa33a25 100644 --- a/account_financial_report_webkit/report/report.xml +++ b/account_financial_report_webkit/report/report.xml @@ -124,7 +124,7 @@ account_financial_report_webkit/report/templates/account_report_print_journal.mako account_financial_report_webkit/report/templates/account_report_print_journal.mako - + account_report_print_journal_webkit diff --git a/account_financial_report_webkit/report/templates/account_report_open_invoices.mako b/account_financial_report_webkit/report/templates/account_report_open_invoices.mako index 02dc6952..29a6fd36 100644 --- a/account_financial_report_webkit/report/templates/account_report_open_invoices.mako +++ b/account_financial_report_webkit/report/templates/account_report_open_invoices.mako @@ -21,7 +21,6 @@ - <% import addons %> <% template1 = helper.get_mako_template('account_financial_report_webkit','report', 'templates', 'open_invoices_inclusion.mako.html') %> <% context.lookup.put_template('open_invoices_inclusion.mako.html', template1) %> <% template2 = helper.get_mako_template('account_financial_report_webkit','report', 'templates', 'grouped_by_curr_open_invoices_inclusion.mako.html') %> @@ -73,7 +72,7 @@ %for acc in objects: - %if hasattr(acc, 'grouped_ledger_lines'): + %if 'grouped_ledger_lines' in acc: <% fl = formatLang %> <%include file="grouped_by_curr_open_invoices_inclusion.mako.html" args="account=acc,formatLang=fl"/> %else: