← Back to team overview

openerp-india team mailing list archive

[Bug 893833] Re: [trunk][purchase] Incorrect calculation on accounting moves for purchases

 

*** This bug is a duplicate of bug 889093 ***
    https://bugs.launchpad.net/bugs/889093

** This bug has been marked a duplicate of bug 889093
   stock real time accounting - wrong values for stock moves with purchase unit != UoM

-- 
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/893833

Title:
  [trunk][purchase] Incorrect calculation on accounting moves for
  purchases

Status in OpenERP Addons (modules):
  New

Bug description:
  Steps to reproduce:

   1. Set product Purchase UOM to different than Default UOM. (e.g. m (150) and m)
   2. Create PO using Purchase UOM, quantity 1
   3. Send RFQ/Confirm PO/Receive Products
   4. Note journal entries - value is 150 x (150 x standard price)

  The reason this occurs is because _get_reference_accounting_values_for_valuation() in purchase/stock.py uses the qty back from compute_qty (150) and multiplies by the unit_price from the PO - which is the value of m (150).
  _get_reference_accounting_values_for_valuation() should either use the PO line for quantity or use the correct price.

  Note that in stable the issue is somewhat different (it never uses
  qty) but I believe that issue was fixed in trunk.

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


References