c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19662
[Bug 734497] Re: hr_timesheet_invoice: reinvoicing is not correctly set on analytic account lines
Hello,
i tried to make a pdf document with all steps required to reproduce the
bug.
Is this what you need ?
Frank
** Attachment added: "bug 734497.pdf"
https://bugs.launchpad.net/openobject-addons/+bug/734497/+attachment/1922779/+files/bug%20734497.pdf
--
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):
Incomplete
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