Daily updates from Odoo
Friday, January 31, 2025
3 changes · master
Resolved issues and error corrections
The WhatsApp Calendar test setup now includes a default phone number for the admin contact. This prevents test failures when demo data is not installed, helping keep quality checks reliable across environments.
Original PR description
Problem: When test cases run without demo data, the admin's phone number is not set, causing `_find_value_from_field_path` to return `''` while creating a WhatsApp message record. This is compared with `False` in the test, leading to a failure. Solution: Set a default phone number for the admin partner in the test setup to ensure consistent behavior regardless of demo data availability.
Fixed an issue where entering an on-hand quantity for a lot-tracked product without specifying a lot or serial number would not update inventory. This helps users keep stock levels accurate when creating inventory lines from barcode-related flows.
Original PR description
### Steps to reproduce: - Create a storable product tracked by lot/serial - Click on "On Hand" - Create a new line with 10 "On Hand Quantity" WITHOUT lot/serial - Go back to the product: The "On…
### Steps to reproduce: - Create a storable product tracked by lot/serial - Click on "On Hand" - Create a new line with 10 "On Hand Quantity" WITHOUT lot/serial - Go back to the product: The "On Hand" quantity is still at 0. - Click back to the "On Hand": the quantity of the line is back to 0. ### Cause of the issue: When a new line is created and the "On Hand Quantity" is edited from the `view_stock_quant_tree` view, we actually performs a create of the stock.quant followed by a write on the `inventory_quantity_auto_apply`. At this point the 'quantity' field of the new quant is not set and the `action_apply_inventory` of the `inventory_quantity_auto_apply` is expected to create and validate a move line in order to update our quant quantities here: https://github.com/odoo/odoo/blob/e041e890b91e5bc515e1827683f073781788f253/addons/stock/models/stock_quant.py#L230-L235 However, this steps will never be performed as we return the call before the `_apply_invetory` because our quant is set without lots: https://github.com/odoo/odoo/blob/e041e890b91e5bc515e1827683f073781788f253/addons/stock/models/stock_quant.py#L447-L449 https://github.com/odoo/odoo/blob/e041e890b91e5bc515e1827683f073781788f253/addons/stock/models/stock_quant.py#L465-L477 ### Master Fix: We remove the wizzard. opw-4428050
This fixes the sales spreadsheet integration so it continues to work after recent spreadsheet platform changes. Business users should see field highlighting and synchronization behave as expected when working with sales-related spreadsheets.
Original PR description
See: - https://github.com/odoo/odoo/pull/195935 - https://github.com/odoo/o-spreadsheet/commit/7c179b457383fff716156acc216ca34999eaa85d