diff --git a/account_financial_report_webkit/report/aged_open_invoices.py b/account_financial_report_webkit/report/aged_open_invoices.py index 0241c85f..2404f774 100644 --- a/account_financial_report_webkit/report/aged_open_invoices.py +++ b/account_financial_report_webkit/report/aged_open_invoices.py @@ -45,6 +45,7 @@ def make_ranges(top, offset): ranges.append((top, 100000000000)) return ranges + # list of overdue ranges RANGES = make_ranges(120, 30) @@ -56,6 +57,7 @@ def make_ranges_titles(): titles.append(_('Overdue > %s d.') % RANGES[-1][0]) return titles + # list of overdue ranges title RANGES_TITLES = make_ranges_titles() # list of payable journal types @@ -408,6 +410,7 @@ class AccountAgedOpenInvoicesWebkit(PartnersOpenInvoicesWebkit): res = self.cr.fetchall() return dict((x[0], x[1]) for x in res) + HeaderFooterTextWebKitParser( 'report.account.account_aged_open_invoices_webkit', 'account.account', diff --git a/account_financial_report_webkit/report/aged_partner_balance.py b/account_financial_report_webkit/report/aged_partner_balance.py index 5b09d8ee..1f640c14 100644 --- a/account_financial_report_webkit/report/aged_partner_balance.py +++ b/account_financial_report_webkit/report/aged_partner_balance.py @@ -43,6 +43,7 @@ def make_ranges(top, offset): ranges.append((top, 100000000000)) return ranges + # list of overdue ranges RANGES = make_ranges(120, 30) @@ -54,6 +55,7 @@ def make_ranges_titles(): titles.append(_('Overdue > %s d.') % RANGES[-1][0]) return titles + # list of overdue ranges title RANGES_TITLES = make_ranges_titles() # list of payable journal types @@ -420,6 +422,7 @@ class AccountAgedTrialBalanceWebkit(PartnersOpenInvoicesWebkit): res = self.cr.fetchall() return dict((x[0], x[1]) for x in res) + HeaderFooterTextWebKitParser( 'report.account.account_aged_trial_balance_webkit', 'account.account', diff --git a/account_financial_report_webkit/report/open_invoices.py b/account_financial_report_webkit/report/open_invoices.py index 158acf85..bfb2bb35 100644 --- a/account_financial_report_webkit/report/open_invoices.py +++ b/account_financial_report_webkit/report/open_invoices.py @@ -40,6 +40,7 @@ def get_mako_template(obj, *args): template_path = get_module_resource(*args) return Template(filename=template_path, input_encoding='utf-8') + report_helper.WebKitHelper.get_mako_template = get_mako_template diff --git a/account_financial_report_webkit/report/partner_balance.py b/account_financial_report_webkit/report/partner_balance.py index 1e039bb7..f836be6c 100644 --- a/account_financial_report_webkit/report/partner_balance.py +++ b/account_financial_report_webkit/report/partner_balance.py @@ -93,6 +93,7 @@ class PartnerBalanceWebkit(report_sxw.rml_parse, return super(PartnerBalanceWebkit, self).set_context( objects, data, new_ids, report_type=report_type) + HeaderFooterTextWebKitParser( 'report.account.account_report_partner_balance_webkit', 'account.account', diff --git a/account_financial_report_webkit/report/print_journal.py b/account_financial_report_webkit/report/print_journal.py index c693444e..3c6f8e1f 100755 --- a/account_financial_report_webkit/report/print_journal.py +++ b/account_financial_report_webkit/report/print_journal.py @@ -158,6 +158,7 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): return super(PrintJournalWebkit, self).set_context( objects, data, new_ids, report_type=report_type) + HeaderFooterTextWebKitParser( 'report.account.account_report_print_journal_webkit', 'account.journal.period', diff --git a/account_financial_report_webkit/report/trial_balance.py b/account_financial_report_webkit/report/trial_balance.py index 27c202b5..e663fa53 100644 --- a/account_financial_report_webkit/report/trial_balance.py +++ b/account_financial_report_webkit/report/trial_balance.py @@ -85,6 +85,7 @@ class TrialBalanceWebkit(report_sxw.rml_parse, return super(TrialBalanceWebkit, self).set_context( objects, data, new_ids, report_type=report_type) + HeaderFooterTextWebKitParser( 'report.account.account_report_trial_balance_webkit', 'account.account',