From e196980dffac817ba5f412ecad1148763d81ce9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 14 Apr 2008 19:04:57 +0200 Subject: [PATCH] Fix parse for style implementation --- account.py | 8 ++++---- move.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/account.py b/account.py index 93469aa0f2..02aadfd88d 100644 --- a/account.py +++ b/account.py @@ -490,7 +490,7 @@ class GeneralLegder(Report): #Don't browse false account return None - def parse(self, cursor, user, content, objects, datas, context): + def parse(self, cursor, user, report, objects, datas, context): if context is None: context = {} context = context.copy() @@ -567,7 +567,7 @@ class GeneralLegder(Report): account_id, end_period_ids, datas['form']['posted'], context) context['company'] = company - return super(GeneralLegder, self).parse(cursor, user, content, objects, + return super(GeneralLegder, self).parse(cursor, user, report, objects, datas, context) def lines(self, cursor, user, account_id, period_ids, posted, context): @@ -679,7 +679,7 @@ class TrialBalance(Report): def _get_objects(self, cursor, user, ids, model, datas, context): return None - def parse(self, cursor, user, content, objects, datas, context): + def parse(self, cursor, user, report, objects, datas, context): if context is None: context = {} context = context.copy() @@ -738,7 +738,7 @@ class TrialBalance(Report): context['sum'] = lambda accounts, field: self.sum(cursor, user, accounts, field, context) - return super(TrialBalance, self).parse(cursor, user, content, objects, + return super(TrialBalance, self).parse(cursor, user, report, objects, datas, context) def sum(self, cursor, user, accounts, field, context): diff --git a/move.py b/move.py index 1730c9ce10..fb320ab021 100644 --- a/move.py +++ b/move.py @@ -1651,7 +1651,7 @@ class GeneralJournal(Report): order='date, reference, id', context=context) return move_obj.browse(cursor, user, move_ids, context=context) - def parse(self, cursor, user, content, objects, datas, context): + def parse(self, cursor, user, report, objects, datas, context): if context is None: context = {} company_obj = self.pool.get('company.company') @@ -1665,7 +1665,7 @@ class GeneralJournal(Report): context['from_date'] = datas['form']['from_date'] context['to_date'] = datas['form']['to_date'] - return super(GeneralJournal, self).parse(cursor, user, content, + return super(GeneralJournal, self).parse(cursor, user, report, objects, datas, context) GeneralJournal()