odoo/odoo#137339
Created by fw-bot
Merged
at 735675949b5483a3320a958604e9a32281221acf
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team for help in case of failure.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-16.3-15.0-opw-3379457-unbruildSVL-waha-2hbX-fw
- head
- b36bc31bc1fc9f442acbb1d41778248e8235cb2c
- merged
- 2 years ago by Walid Hanniche (waha)
odoo/odoo | |
---|---|
15.0 | #137252 |
saas-15.2 | #137304 |
16.0 | #137312 |
saas-16.1 | #137322 |
saas-16.2 | #137332 |
saas-16.3 | #137339 |
saas-16.4 | #137346 |
17.0 | |
18.0 | |
saas-18.1 | |
saas-18.2 | |
saas-18.3 | |
master | #137353 |
[FW][FIX] mrp_account: correct component price unbuild
Steps to reproduce:
- Create a component C (automated/FIFO)
- Create and confirm two PO for C
qty: 1, price: 10
qty: 1, price: 20
- Make an MO with C as a component
- Unbuild that MO
Bug:
The valuation of the new component C is wrong, the new move in is valued at the current product cost instead of its original value.
Fix:
create moves as a return to get the correct value
Forward-Port-Of: #137252