Fix parse for style implementation

This commit is contained in:
Cédric Krier committed 2008-04-14 19:04:57 +02:00
1 parent c77ad6eefa
commit e196980dff
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -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):
+2 -2
View File
@@ -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()