← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 734497] Re: hr_timesheet_invoice: reinvoicing is not correctly set on analytic account lines

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

-- 
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):
  In Progress

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