Add header grouping on report
issue6760 review351221002
This commit is contained in:
1 parent
8fbde08291
commit
090bd71989
2 files changed
+8
-9
No files matched your search
+6
-7
@@ -2049,14 +2049,14 @@ class GeneralLedger(Report):
|
||||
__name__ = 'account.general_ledger'
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
def get_context(cls, records, header, data):
|
||||
pool = Pool()
|
||||
Company = pool.get('company.company')
|
||||
Fiscalyear = pool.get('account.fiscalyear')
|
||||
Period = pool.get('account.period')
|
||||
context = Transaction().context
|
||||
|
||||
report_context = super(GeneralLedger, cls).get_context(records, data)
|
||||
report_context = super().get_context(records, header, data)
|
||||
|
||||
report_context['company'] = Company(context['company'])
|
||||
report_context['fiscalyear'] = Fiscalyear(context['fiscalyear'])
|
||||
@@ -2077,14 +2077,14 @@ class TrialBalance(Report):
|
||||
__name__ = 'account.trial_balance'
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
def get_context(cls, records, header, data):
|
||||
pool = Pool()
|
||||
Company = pool.get('company.company')
|
||||
Fiscalyear = pool.get('account.fiscalyear')
|
||||
Period = pool.get('account.period')
|
||||
context = Transaction().context
|
||||
|
||||
report_context = super(TrialBalance, cls).get_context(records, data)
|
||||
report_context = super().get_context(records, header, data)
|
||||
|
||||
report_context['company'] = Company(context['company'])
|
||||
report_context['fiscalyear'] = Fiscalyear(context['fiscalyear'])
|
||||
@@ -2498,15 +2498,14 @@ class AgedBalanceReport(Report):
|
||||
__name__ = 'account.aged_balance'
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
def get_context(cls, records, header, data):
|
||||
pool = Pool()
|
||||
Company = pool.get('company.company')
|
||||
Context = pool.get('account.aged_balance.context')
|
||||
AgedBalance = pool.get('account.aged_balance')
|
||||
context = Transaction().context
|
||||
|
||||
report_context = super(AgedBalanceReport, cls).get_context(
|
||||
records, data)
|
||||
report_context = super().get_context(records, header, data)
|
||||
|
||||
context_fields = Context.fields_get(['type', 'unit'])
|
||||
|
||||
|
||||
@@ -2108,8 +2108,8 @@ class GeneralJournal(Report):
|
||||
order=[('date', 'ASC'), ('id', 'ASC')])
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
report_context = super(GeneralJournal, cls).get_context(records, data)
|
||||
def get_context(cls, records, header, data):
|
||||
report_context = super().get_context(records, header, data)
|
||||
|
||||
Company = Pool().get('company.company')
|
||||
|
||||
|
||||
Reference in new issue
Block a user