Bug in module stock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned |
Bug Description
I have encountered a problem in the module stock in the branch ocb 6.1 file stock.py
The problem that occurs is that when I put an order for a product that your UoM is
Units , if I make the purchase in thousands eg , to generate the accounting entries me
I find that putting the value is 1000 times the real.
For example :
Buy 2 thousands labels to 89.30 euros thousand.
Me to increase my stock 2000 units increases . perfect.
The cost price puts me well . 0.0893 Euros.
But accounting generates me an accounting of inventory increased to a value of 178600 euros when it should be 178.60 .
I have retouched the module file stock.py stock as follows :
Line 2156, said:
qty = product_
I added :
precio = product_
Line 2161, said :
reference_amount = qty * move.price_unit
I have replaced :
reference_amount = qty * precio
and so says the accounting entry generated 178,60 instead of EUR 178600 .
Hi Luis,
thank you for reporting your findings. I noticed that you only speak about OCB. Does that mean that this bug only present in OCB and not in OpenERP?