Daily updates from Odoo
Wednesday, January 8, 2025
3 changes · master
Enhancements to existing features
Internal users can now open the Documents app directly from the main menu, even if they are not members of the Documents user group. This makes personal HR-related documents easier to find and access without changing broader document permissions.
Original PR description
The `documents_hr` addon provides access to Documents app from the internal user profile. But only members of the documents_user group can access it from the root menu. This commit adds to `documents_hr` a new Documents root menu for basic users, giving them another way to access their documents. task-3872372
Resolved issues and error corrections
Amazon FBA orders containing products tracked by serial or lot number can now be synchronized successfully. The system uses the serial number provided by Amazon before confirming the stock movement, preventing failed order imports and reducing manual intervention.
Original PR description
Currently, when syncing an Amazon order selling a product that's tracked by serial/lots number, the order failed to be synchronized due to the missing serial number that's required. We will now take that number from Amazon and applied it before confirming the move. task-3539358 See also: - https://github.com/odoo/odoo/pull/157443
This fix prevents barcode label generation from failing when tracked products do not yet have a finalized lot record. The system now uses the entered lot name when needed and shows a clear warning instead of raising an unexpected error when no tracking number is available.
Original PR description
Main: Encoding a SGTIN EPC requires a tracking number to make the tag unique. When the product is not tracked, a "fake" tracking number is used. Otherwise, we use the tracking number registered on…
Main: Encoding a SGTIN EPC requires a tracking number to make the tag unique. When the product is not tracked, a "fake" tracking number is used. Otherwise, we use the tracking number registered on the Move Line. However, depending on the state of the Move Line, lot_id may not be set and the tracking number will rather be available in lot_name. Currently, we only rely on lot_id, which may lead to an empty tracking number list, which in turn raises an unhandled exception. - We should try getting the tracking number from lot_name when lot_id is not set; - We should handle the case where the tracking number list is empty. N.B. : Only an empty tracking number list is problematic, the case of a list populated with null value is already handled by the epc_encoder. Before: - We only get the tracking number from lot_id.name; - No verification is done on the tracking number list. After: - Default to lot_name when lot_id is not set. - When the tracking number list is empty, set an error warning as the electronic_product_code on the concerned move lines.