c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #21176
[Bug 734497] Re: hr_timesheet_invoice: reinvoicing is not correctly set on analytic account lines
Hello,
Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-734497-pso
Rev-no: 4627
Rev-Id: pso@xxxxxxxxxxx-20110406100441-ubf4i833zja5e03e
It will be merged soon with Addons branch.
Thanks for your contribution.
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/734497
Title:
hr_timesheet_invoice: reinvoicing is not correctly set on analytic
account lines
Status in OpenERP Modules (addons):
Fix Committed
Bug description:
I tried to configure reinvoicing on my openerp install, but despite
correct (i think) settings in the analytic accounts, the "reinvoice"
setting is not propagated to the invoice lines. This stops the re-
invoicing task (recurring activities -> billing -> bill tasks) from
working normally.
See http://www.openerp.com/forum/post77451.html
the reason is 2 things:
* account_move_line.create creates its own analytic invoice lines, ignoring the invoice lines supplied as values (so the whole hr_timesheet_invoice invoice lines creator logic is doing nothing)
* the analytic account lines are then deleted and recreated again by
account.validate, so even if i changed above behaviour, it would still
not work.
proposed fix (see attached patch) is overriding account_move_line so
that it changes the analytic lines to set the right to_invoice based
on analytical account.
greetings,
Frank
References