Incorrect sequence of calculations in product/pricelist.py price_get_multi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I just saw this and noted that it is rounded before calculations on price have finished meaning either the rounding is entirely unnecessary and hence a place where errors might come in, or it is happening too early. It should happen after the final price is determined. But also I think you want to look at that bit of code because it just looks wrong - if you use the min_margin or max_margin functionality (which I don't) surely this must be based off a cost price, yet it is calculated using the just fetched price by the looks of things.
Hello Graeme Gellatly,
Would you please elaborate more with proper example so I can reproduce the early rounding issue.
Thanks and waiting for your reply.