-
Notifications
You must be signed in to change notification settings - Fork 23.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock: ensure reception report always uses quantity field
Following quantitypocalypse (#137864), a couple of `reserved_uom_qty` and `reserved_qty` references were left over. This was partially due to no tests for these tricky parts of the code, therefore we both fix these references to use the newer `quantity`/`quantity_product_uom` fields and add/update tests to ensure we avoid breaking these 2 use cases again. Also discovered during this fix, the remaining assigned qtys when unassigning done incoming moves from already reserved outgoing moves (i.e. the "1. batch reserved + individual picking unreserved" use case in the code comments) was NOT being calculated correctly. This also fixes that + adds a test for it. closes #147815 Related: odoo/enterprise#53536 Signed-off-by: Steve Van Essche <svs@odoo.com>
- Loading branch information
Showing
2 changed files
with
150 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters