Daily updates from Odoo
Wednesday, October 1, 2025
10 changes · master
Resolved issues and error corrections
This fix ensures Swedish non-EU purchase VAT with a non-zero amount is correctly included as deductible input VAT. It improves the accuracy of Swedish tax reports and restores related automated checks.
Original PR description
The taxes "EX G" (VAT Purchase of goods outside EU) with a non-zero amount should have the tag se_48 (Input VAT to be deducted). This PR fixes the tests that were broken because of it: odoo/odoo#227513 opw-4916405 Forward-Port-Of: odoo/enterprise#95751
The cohort report export button is now disabled when there is no data to export. This prevents users from hitting an error when downloading empty Helpdesk ticket analysis reports and makes the reporting experience smoother.
Original PR description
Currently, an error occurs when user tries to export data on cohort view with no data. Steps to replicate: - Install `helpdesk` (without demo data). - Go to `Helpdesk > reporting > Ticket Analysis` and go to cohort view. - Click download and error will occur. - If error doesnt occur, click on `Measure > Count`, and click Download again. Error: `IndexError: list index out of range` Cause: - The export button remained enabled even when no data available, this caused the export to be called without any data that caused the `Indexerror` at [1]. Solution: - Disabled the export button when no data in cohort view. [1]: https://github.com/odoo/enterprise/blob/475a802aa3e748a905be83c0f6408f8c20f03905/web_cohort/controllers/main.py#L30 sentry-6831823426 Forward-Port-Of: odoo/enterprise#93050
Users with viewer access can now mark or unmark documents as favorites using the keyboard shortcut without encountering an access error. This makes the Documents experience more consistent between shortcut-based and manual favoriting.
Original PR description
steps to reproduce =================== - Select a document where you have viewer permission. - Try to toggle the favorite through a hotkey. - Access Error when toggling favorite. Technical =========== - Adapted the `toggle_favorited` to handle multiple records. After this commit ================== - This commit handles the accessError for shortcut flow. As in 18.3 we already have documents_favorite widget https://github.com/odoo/enterprise/pull/82639 which will work for manually favoriting the document, but it is not handling the shortcut flow. Task-4910326 Forward-Port-Of: odoo/enterprise#89928
This update makes a Planning app test more reliable when demo data is present. It clears existing records before counting them, preventing false test failures and helping maintain stable quality checks.
Original PR description
Reason: - In the test case we check for record count, so we get the count of all the demo data installed too. Fix: - Remove all the records before hand to check for the count. https://runbot.odoo.com/odoo/runbot.build.error/231599 runbot-231599 Forward-Port-Of: odoo/enterprise#95736
This fixes an issue in Sales Commission reporting that could prevent grouped report data from being formatted properly. It helps ensure commission achievement and commission reports display reliably for users reviewing sales performance.
Original PR description
runbot-89585061 Forward-Port-Of: odoo/enterprise#95263
A Turkish payroll employee field is now only visible to authorized HR/payroll users. This prevents non-HR internal users from encountering access errors when viewing employee public profile data.
Original PR description
The test test_employee_fields_groups crashed with: AccessError: The fields “l10n_tr_is_net_to_gross”, which you are trying to read, are not available for employee public profiles. This field exist without HR group restriction as a result, a non-HR internal user calling .read([]) triggered the AccessError. This commit adds groups="hr.group_hr_user" to this field so it is only accessible to HR users, resolving the error. [RB-231736](https://runbot.odoo.com/odoo/error/231736) Forward-Port-Of: odoo/enterprise#94796
The timesheet grid now avoids making invalid requests when a row has a project but no task. This prevents errors in timesheet planning views and helps users continue working without interruptions.
Original PR description
If there are rows in the grid view with a project but no task, we call `get_planned_and_worked_hours` on a `False` id, which is not allowed since https://github.com/odoo/odoo/pull/227477
Swedish payment export files now identify Bankgiro accounts with the correct account type instead of treating them as standard BBAN accounts. This helps ensure bank payment files are accepted and processed correctly for companies using Bankgiro accounts.
Original PR description
Issue: The only possible value for the bank account type is "BBAN". For a 'bankgiro' account it should be "BGNR". Solution: Input "BGNR" in the XML if the bank account type is 'bankgiro'. opw-5063368 Forward-Port-Of: odoo/enterprise#95467
The OSS report can now open correctly when a fiscal position uses a country group instead of a directly selected country. This helps businesses handle VAT reporting setups such as mainland Spain excluding the Canary Islands without report access errors.
Original PR description
To be able to deal with Spain with Canary Islands and mainland, we have a country group that is Mainland Spain VAT, with Spain minus several states (Canary basically). People want to be able to use it for OSS. But currently, if you have an entry with a tax with a fp with this country group (and no country), you can't open your OSS Report. So take the countries of the country group if there is none in the fiscal position. Forward-Port-Of: odoo/enterprise#95795
The Sign app’s “Try a sample contract” button now displays with the correct color in dark mode. This makes the empty-screen action easier to read and keeps the interface visually consistent for users.
Original PR description
The "Try a sample contract" button was implemented with the `text-white` class, which is inverted to black in dark mode, making it inconsistent and not very readable. This commit removes that class. task-5129727 __________ | Before | After | |--------|--------| | <img width="488" height="351" alt="Screenshot 2025-10-01 at 13 18 02" src="https://github.com/user-attachments/assets/c5d00f6a-a086-48e2-b0f9-62828e8801e7" /> | <img width="414" height="350" alt="Screenshot 2025-10-01 at 13 17 39" src="https://github.com/user-attachments/assets/f8fc9707-f520-4c6f-838a-59ee77ae9cb9" /> |