Saturday, June 28, 2025
4 changes · saas-18.3
Resolved issues and error corrections
This fixes an issue where a child company with its own VAT number did not show the expected tax return records, even though it should be treated as the main company for that VAT branch. Businesses using multi-company setups can now access the correct VAT returns for subsidiaries without missing filing information.
Original PR description
Steps to reproduce: - Create a company (for example a Belgian one) and set the vat - Create a child company with same country, but different vat - set the account opening date for both companies - open the tax returns page with the child company -> the child company should have VAT returns associated, because it's the main company for the vat branch, but it doesn't contain anything
The AI feature now allows additional OpenAI GPT models beyond GPT-4. This gives businesses the option to use less expensive models such as GPT-4o and GPT-4.1 while keeping AI capabilities available.
Original PR description
Allows the use of less expensive models. GPT-4 is much more expensive than 4o and 4.1.
Refreshing or opening a shared Documents link now restores the intended document selection instead of leaving users unsure which file was referenced. This makes document links reliable again, especially in folders containing multiple files.
Original PR description
Reproduce: 1. Select a document so that its token is now part of the URL 2. Refresh the page 3. The document is not selected as it should This is problematic because if you are given a link to access a document in a folder with any siblings, you have no way to know which one the link pointed to. Technically, since 18.3, records are no longer found in `onMounted`. Note that due to another (older, independent, and less critical) bug, non-previewable records are not focused. Task-4873715
VoIP configuration now handles cases where the default phone call activity type has been removed. This prevents users from seeing an error when refreshing or loading the system after that activity type is missing.
Original PR description
Currently, an error occurs when the system initializes the voip configuration for the currently logged-in internal user. Steps to Reproduce: - Install the `voip` module. - Delete the activity type where the `Action` is `'Phonecall'`, and then refresh the page. `IndexError: tuple index out of range.` This error occurs when the system initializes the voip configuration and no phonecall activity type exists. The system attempts to search for activity types with the 'phonecall' category, which returns an empty recordset. Then it tries to access the first record of this empty recordset[1], which raises an error. [1] https://github.com/odoo/enterprise/blob/2896974e9eda61bfe5e1d67423dc56f6ab17b2af/voip/models/res_users.py#L128 This commit ensures that if activity type with the 'phonecall' category is present, it store the activity type id, otherwise, it stores False as the activity type id. sentry-6689050392