Friday, April 25, 2025
3 changes · 17.0
Resolved issues and error corrections
A shared number display component has been moved into the main HR module so payroll can use it without depending on time off features. This keeps payroll setup cleaner and avoids unnecessary module dependencies while preserving the same user experience.
Original PR description
Since the widget for non trailing zeros float is used in payroll and payroll does not depend on hr_holidays now, we move the widget to core hr
The dropshipping company setup check now looks for the dedicated dropshipping operation type instead of relying on older location-based rules. This prevents companies from being incorrectly identified as missing dropshipping configuration after the newer operation type was introduced.
Original PR description
In this version, the picking type code `dropship` has been introduced to differentiate incoming types from this one (ref: 1547d66585a4b57cd3b747f28b7514dbd9d7bef8), but the search for missing companies without this new type is still being done with the old criteria of the source and target location. Let's change this to use the new picking type code. @Tecnativa
This fix prevents an error in the manufacturing barcode workflow when a user scans a package type while a component line is selected. Instead of crashing, the system now shows a clear notification guiding the user to scan a product, improving reliability during shop floor operations.
Original PR description
**Current behavior:** Scanning a package type in an MO in barcode while having a raw move line (component line) selected will result in a traceback. **Expected behavior:** Put the comp line in a new pack of that package type. **Steps to reproduce:** 1. Make a packge type 2. Make a new MO -> open it in barcode 3. Scan some component, select the new line 4. Scan the barcode of the package type -> traceback **Cause of the issue:** We end up calling `action_put_in_pack` when `this.resModel` is `MrpProduction` (which does not define this method). **Fix:** Define the method for the barcode MRP model to display a notification to, rather, scan a product (scanning a package here doesn't make sense). opw-4564834