greenify account_financial_report_webkit
parent
485645c788
commit
9b0bf05fc5
|
@ -45,6 +45,7 @@ def make_ranges(top, offset):
|
||||||
ranges.append((top, 100000000000))
|
ranges.append((top, 100000000000))
|
||||||
return ranges
|
return ranges
|
||||||
|
|
||||||
|
|
||||||
# list of overdue ranges
|
# list of overdue ranges
|
||||||
RANGES = make_ranges(120, 30)
|
RANGES = make_ranges(120, 30)
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ def make_ranges_titles():
|
||||||
titles.append(_('Overdue > %s d.') % RANGES[-1][0])
|
titles.append(_('Overdue > %s d.') % RANGES[-1][0])
|
||||||
return titles
|
return titles
|
||||||
|
|
||||||
|
|
||||||
# list of overdue ranges title
|
# list of overdue ranges title
|
||||||
RANGES_TITLES = make_ranges_titles()
|
RANGES_TITLES = make_ranges_titles()
|
||||||
# list of payable journal types
|
# list of payable journal types
|
||||||
|
@ -408,6 +410,7 @@ class AccountAgedOpenInvoicesWebkit(PartnersOpenInvoicesWebkit):
|
||||||
res = self.cr.fetchall()
|
res = self.cr.fetchall()
|
||||||
return dict((x[0], x[1]) for x in res)
|
return dict((x[0], x[1]) for x in res)
|
||||||
|
|
||||||
|
|
||||||
HeaderFooterTextWebKitParser(
|
HeaderFooterTextWebKitParser(
|
||||||
'report.account.account_aged_open_invoices_webkit',
|
'report.account.account_aged_open_invoices_webkit',
|
||||||
'account.account',
|
'account.account',
|
||||||
|
|
|
@ -43,6 +43,7 @@ def make_ranges(top, offset):
|
||||||
ranges.append((top, 100000000000))
|
ranges.append((top, 100000000000))
|
||||||
return ranges
|
return ranges
|
||||||
|
|
||||||
|
|
||||||
# list of overdue ranges
|
# list of overdue ranges
|
||||||
RANGES = make_ranges(120, 30)
|
RANGES = make_ranges(120, 30)
|
||||||
|
|
||||||
|
@ -54,6 +55,7 @@ def make_ranges_titles():
|
||||||
titles.append(_('Overdue > %s d.') % RANGES[-1][0])
|
titles.append(_('Overdue > %s d.') % RANGES[-1][0])
|
||||||
return titles
|
return titles
|
||||||
|
|
||||||
|
|
||||||
# list of overdue ranges title
|
# list of overdue ranges title
|
||||||
RANGES_TITLES = make_ranges_titles()
|
RANGES_TITLES = make_ranges_titles()
|
||||||
# list of payable journal types
|
# list of payable journal types
|
||||||
|
@ -420,6 +422,7 @@ class AccountAgedTrialBalanceWebkit(PartnersOpenInvoicesWebkit):
|
||||||
res = self.cr.fetchall()
|
res = self.cr.fetchall()
|
||||||
return dict((x[0], x[1]) for x in res)
|
return dict((x[0], x[1]) for x in res)
|
||||||
|
|
||||||
|
|
||||||
HeaderFooterTextWebKitParser(
|
HeaderFooterTextWebKitParser(
|
||||||
'report.account.account_aged_trial_balance_webkit',
|
'report.account.account_aged_trial_balance_webkit',
|
||||||
'account.account',
|
'account.account',
|
||||||
|
|
|
@ -40,6 +40,7 @@ def get_mako_template(obj, *args):
|
||||||
template_path = get_module_resource(*args)
|
template_path = get_module_resource(*args)
|
||||||
return Template(filename=template_path, input_encoding='utf-8')
|
return Template(filename=template_path, input_encoding='utf-8')
|
||||||
|
|
||||||
|
|
||||||
report_helper.WebKitHelper.get_mako_template = get_mako_template
|
report_helper.WebKitHelper.get_mako_template = get_mako_template
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@ class PartnerBalanceWebkit(report_sxw.rml_parse,
|
||||||
return super(PartnerBalanceWebkit, self).set_context(
|
return super(PartnerBalanceWebkit, self).set_context(
|
||||||
objects, data, new_ids, report_type=report_type)
|
objects, data, new_ids, report_type=report_type)
|
||||||
|
|
||||||
|
|
||||||
HeaderFooterTextWebKitParser(
|
HeaderFooterTextWebKitParser(
|
||||||
'report.account.account_report_partner_balance_webkit',
|
'report.account.account_report_partner_balance_webkit',
|
||||||
'account.account',
|
'account.account',
|
||||||
|
|
|
@ -158,6 +158,7 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit):
|
||||||
return super(PrintJournalWebkit, self).set_context(
|
return super(PrintJournalWebkit, self).set_context(
|
||||||
objects, data, new_ids, report_type=report_type)
|
objects, data, new_ids, report_type=report_type)
|
||||||
|
|
||||||
|
|
||||||
HeaderFooterTextWebKitParser(
|
HeaderFooterTextWebKitParser(
|
||||||
'report.account.account_report_print_journal_webkit',
|
'report.account.account_report_print_journal_webkit',
|
||||||
'account.journal.period',
|
'account.journal.period',
|
||||||
|
|
|
@ -85,6 +85,7 @@ class TrialBalanceWebkit(report_sxw.rml_parse,
|
||||||
return super(TrialBalanceWebkit, self).set_context(
|
return super(TrialBalanceWebkit, self).set_context(
|
||||||
objects, data, new_ids, report_type=report_type)
|
objects, data, new_ids, report_type=report_type)
|
||||||
|
|
||||||
|
|
||||||
HeaderFooterTextWebKitParser(
|
HeaderFooterTextWebKitParser(
|
||||||
'report.account.account_report_trial_balance_webkit',
|
'report.account.account_report_trial_balance_webkit',
|
||||||
'account.account',
|
'account.account',
|
||||||
|
|
Loading…
Reference in New Issue