Files
odoo_source/addons/mrp_account
Arnold Moyaux b2bb03ab45 [FIX] mrp_account: wrong kit cost
Usecase to reproduce
- Create a KIT with COMP A (15$) COMP B (25$)
- Enable Margin on SO
- Set the cost on the KIT with compute cost button (40$)
- Create a quotation with the KIT (cost is correct 40$)
- Confirm the quotation -> Cost is updated to 15$ (first component)

It happens because the function to compute the average price doesn't
expect a kit and compute everything from the valuation layer of first
component

opw-2413246

closes odoo/odoo#65301

X-original-commit: 827f65f70634ba7a2e4175f20e5301e514ada0a0
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-01-29 18:07:15 +00:00
..
2021-01-29 18:07:15 +00:00