[trunk] incorrect stock accounting valuations using standard cost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
in purchase module stock.py the method _get_reference_
to reproduce.
Set a product as standard cost of $1.00
Raise a purchase order for this product at $1.50 * 10
Expected entries
Stock dr $10
Stock Input cr $10
Results
$15 in each.
if using standard cost the correct valuation at receipting time is the products standard cost * quantity. this is the whole point of using standard cost in the first place. However this override cause the stock valuation calculation to become po line price * qty. When products are sold downstream this will cause an error in stock valuation.
The line
if move.product_
should be changed, probably to
if move.product_
but in truth, this function could just be deleted entirely as there is no condition where this should evaluate to true, and even if it did, it is safer to take the standard_price which already occurs than just assume that the po_line is the correct price as the scale of potential errors is significantly smaller with the former and po's have no accounting entries.
In any case, with standard accounting it makes no difference, and with anglosaxon the price difference is picked up at invoice. Note that this bug is a root cause of the symptons of bug 922077
Related branches
Changed in openobject-addons: | |
status: | New → Incomplete |
Hello Graeme,
I have checked your issue at my end . but it's working fine for me .
For your more reference ,I have attached video. please go throw it.
If you still faced the problem , notify us .
Thanks!