Thursday, June 20, 2024
2 changes · saas-17.1
Resolved issues and error corrections
Restricted website editors now see the appropriate options for editing or translating pages based on the active language. This prevents translated content, such as a French blog post on an English-default site, from accidentally overwriting the original source content.
Original PR description
Before this commit, the restricted editor would see the "Edit" button regardless of the current language. This led to unpredictable results: no editable content, editing the source, or editing the translation. Now, we display the correct buttons for translating and editing. Previously, if you edited a blog in French while your website's default language was English, it would overwrite the French source instead of translating it. Now, it correctly translates the content. X-original-commit: 1bcc0733c9af52c6cf38b12f24ff6ed96314bec4
This fix prevents the Barcode app from creating unnecessary zero-quantity receipt lines when a destination location is changed for lot-tracked products. Warehouse users get cleaner receipt records and avoid confusion or manual cleanup during scanning.
Original PR description
# How to reproduce
- Create product: P1, storable | tracked by lot | barcode set
- Create Receipt for 2 units of P1
- In barcode App:
- Scan product "P1"
- Scan lot "lot1"
- Scan lot "lot2"
- Select line with "lot1"
- Scan dest location "2601892" (Stock/Shelf1 in runbot)
=> New line created for P1 with quantity 0
https://github.com/odoo/enterprise/assets/29302288/2892a5dc-43e7-4437-9eb7-c079d1b2f807
The selected line is always done first.
Usually the selected line is the last one without reserved quantity, it is not split, and we steal the reserved quantity of the sibling.
However, if the line with incomplete reserved quantity is done first, then it is split. When the next line is done, it steals quantity from the created line, leaving it with reserved_uom_qty = 0 and qty_done = 0.
---
To fix this issue, we assign the reserved quantity from the sibling on all lines before changing the dest location and doing a split.
OPW-3942171