Accounting mailing list archives

accounting@odoo-community.org

Avatar

Re: [8.0] Accounting Entries Report - Extensible by other modules

by
ForgeFlow, S.L., Jordi Ballester Alomar
- 27/01/2016 12:09:30
Thanks Pedro,

The account.entries.report has been deprecated in v9. And since Odoo won't accept the PR into v8....

On Wed, Jan 27, 2016 at 12:07 PM, <Pedro@pad.odoo-community.org> wrote:
It seems reasonable to me, but I will try to propose to Odoo first as a PR. It's not a functional change, but I'm afraid they're going to only accept it for v9. I have made the same with mrp with the module https://github.com/OCA/manufacture/tree/8.0/mrp_hook, because Odoo accepts it on v9, but not on v8. This way, the module will be removed on v9, and the extension module is compatible directly in v9 just removing the dependency.

Regards.

2016-01-27 11:08 GMT+01:00 Jordi Ballester Alomar <jordi.ballester@eficent.com>:
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,
--

_______________________________________________
Mailing-List: http://odoo-community.org/groups/accounting-28
Post to: mailto:accounting@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe


_______________________________________________
Mailing-List: http://odoo-community.org/groups/accounting-28
Post to: mailto:accounting@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe




--

Reference