Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock_account: setting standard price with multiple real-price …
…outs with negative quants fixes odoo#24925 Somehow the function treated multiple records with the new api translation from 9 to 10. Steps to reproduce: This applies to delivery orders and manufacturing orders. As an example: Create an MO with 2 products on the BOM Both products must have real time costing with FIFO The first product on the bom must not be available For the second product on the BOM, the standard_price must be different from the cost of the next quant to be consumed Complete the MO, letting the first product result in a negative quant Current behavior: The standard_price of the second product on the BOM does not get updated. Behavior after this fix: The standard_price of the second product on the BOM gets updated. Thanks to matt454357.
- Loading branch information