Accounting mailing list archives

accounting@odoo-community.org

Avatar

[8.0] Accounting Entries Report - Extensible by other modules

by
ForgeFlow, S.L., Jordi Ballester Alomar
- 27/01/2016 11:01:28
Dear accounting experts,

We need to extend the account.entries.report to add the Operating Unit as one parameter for analysis.

The report is currently not extensible with respect to the query. We're considering creating a new OCA module "account_entries_report_hooks" that splits the query to something like below shown. Please let me know if you agree on this proposal.

def init(self, cr):
drop_view_if_exists(cr, self._table)
cr.execute("""CREATE or REPLACE VIEW %s as (
%s
%s
%s
%s
)""" % (self._table, self._select(), self._from(), self._where(),
self._group_by()))

Regards,
--

Follow-Ups