Accounting mailing list archives

accounting@odoo-community.org

Avatar

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

by
Eska Yazilim, Levent Karakaş
- 27/01/2016 17:38:42

Dear Jordi,

I needed the same thing for getting invoice, sale and purchase reports work properly with currency rate types. I couldn't get it work since _register_hook is executed after install/update and init is used only in install/update. There might be some other way to make monkey patch for hooks. I will be happily give hand in case we can find a solution.

Thanks,
Levent.

Ps: Something i noticed with purchase report is that it is multiplying with currency rate instead of dividing it by. It works incorrectly in v8 and v9 branch and I can't believe nobody noticed it so far.






27 Oca 2016 ÖS 1:07 tarihinde <Pedro@pad.odoo-community.org> yazdı:
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