← Back to team overview

openerp-india team mailing list archive

[Bug 1099536] Re: Incorrect product on invoice by timesheet

 

Investigating further, the 1st timesheet line always incorrectly
contains the product_id from the Employee's HR Settings screen.  The
remaining lines always contain the correct product_id from the
Contract's 'Invoice Price Rate Per User' table.

One workaround for this appears to be to go to Employees -> [Employee
Name] -> HR Settings and change the 'Product' to the newly created
product.  I still think the bug is valid though;  if an employee can
ever be charged out at different rates, then the discrepancy will occur,
and can't easily be rectified.  The Invoice can be amended, but the
original source of the error, the 'account_analytic_line' table, remains
unchanged.  The timesheet activities screen doesn't allow the product to
be viewed or amended either, so to correctly work around the issue, I
can't see another option aside from a direct update on the DB.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1099536

Title:
  Incorrect product on invoice by timesheet

Status in OpenERP Addons (modules):
  New

Bug description:
  1) Reproduction recipe:

  a) On a blank OpenERP database, install the accounting, account_analytic_analysis, and the analytic_user_function modules.
  b) Create a user, employee, customer and a new product (leave the default 'Service' product as-is)
  c) Create a new contract, and under the 'Invoice Price Rate Per User' create a new item, selecting the newly created user and newly created product.
  d) Create a timesheet for the employee and select the newly created contract from the drop-down.
  e) Create an invoice for the newly created contract.

  2) Observed results:

  A new invoice is created, with 2 invoice lines.  One is for the
  correct product as attributed to the user in step 3 above.  The 2nd is
  for the default 'Service' product.

  3) Expected results:

  A new invoice should be created, with a single invoice line for the
  product attributed to the user in step 3 above

  3a) Investigation:

  Things appear to go wrong at step 1d.  The row in the
  account_analytic_line table corresponding to the first date on the
  timesheet contains the incorrect product_id value.

  4) Platform:

  Fedora 17.  Firefox-17.0.1

  5) OpenERP version:

  7.0-20130112-002227

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1099536/+subscriptions


References