Daily updates from Odoo
Wednesday, January 8, 2025
3 changes · master
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.
A payroll-related automated test was adjusted to match a recent change in how notification messages are displayed. This helps keep Belgian payroll accounting checks reliable without changing the employee or payroll user experience.
Original PR description
Purpose of this commit: Following the changes in https://github.com/odoo/odoo/pull/189853, the o-mail-Message-body class is no longer applied to messages with a message_type of 'notification'. This commit updates the corresponding failing tour. task-4291913