Daily updates from Odoo
Tuesday, April 14, 2026
8 changes · master
Resolved issues and error corrections
This update resolves issues with the payrun window's filters in Hong Kong, ensuring accurate reporting. It corrects a misconfiguration related to employee type filtering and removes an unnecessary file that was causing problems. These changes improve the reliability and accuracy of payroll processing for Hong Kong users.
Original PR description
[FIX] l10n_hk_hr_payroll: new payrun employee selection Fixes a few issues with the payrun window causing the filters to not work well in Hong Kong. - The override wasn't updated for the new employee type filter - When eMPF was merged into the base module, the js file wasn't added to the backend assets and wasn't loading - Update the JS override to better match the new version of the original file. [FIX] l10n_hk_hr_payroll: remove payrun card The file mas mistakenly reintroduced with the eMPF merging, but unused. The change in manifest done in this pr highlighted that this template is no longer needed and cause issues, so we can properly remove it. task-6108320
This update enhances the stability of the Odoo integration with Fiskaly, primarily by refining error handling and configuration settings. Specifically, the system now correctly manages SCU limits and provides better tracking of company configurations, ensuring smoother operation and accurate data synchronization.
Original PR description
- Retry only on server errors (5xx) instead of client errors (4xx) to avoid masking meaningful API responses with a confusing RetryError. - Reuse the existing active SCU when E_SCU_LIMIT_REACHED is returned, since Fiskaly only allows one active SCU per account. - Pass the pos.config id as metadata when creating a cash register on Fiskaly, making it easier to match Fiskaly register IDs back to their config when the local link is broken. - Hide the test mode toggle once the company is registered with Fiskaly (l10n_at_fiskaly_organization_id is set) to prevent mode changes after registration. opw-5958673 Forward-Port-Of: odoo/enterprise#113601 Forward-Port-Of: odoo/enterprise#113496
This update creates a direct link between Documents and Project Tasks, resolving a previous issue where attachments and saved documents weren't automatically connected. Now, documents created from Project Tasks will automatically include a link back to the task, improving workflow and organization.
Original PR description
Previously, there was no connection between the Documents app and Project Tasks (`project.task`). Attachments added to a task via the chatter were not synced to the Documents app, and documents manually saved from the chatter lacked a link back to the corresponding task. This commit introduces a link between them by posting a message in the created document's chatter, linking it back to the task. This solution is specifically for stable versions. On `master`, we introduce a proper bridge. task-5941719 Forward-Port-Of: odoo/enterprise#111996
This update fixes an issue where the LU VAT reports were incorrectly showing only the first product ID instead of all products with missing internal references. This ensures accurate reporting for Luxembourg VAT compliance, addressing a previous data discrepancy and improving report reliability.
Original PR description
This is one of several commits fixing the FAIA xml export. The internal reference must be set for all products reported in the FAIA report. When there are multiple products missing this field, our previous code only reported the first ID to the customer. This commit shows the customer all incorrectly configured products. opw-5427296, opw-6113665 Forward-Port-Of: odoo/enterprise#113563 Forward-Port-Of: odoo/enterprise#113452
This update fixes a bug in the payroll system where warning messages weren't displaying all employees needing review – specifically those marked as 'anomaly'. Now, warning messages accurately include employees in both 'to review' and 'anomaly' states, ensuring accurate review processes and better compliance.
Original PR description
Currently, when a payrun has some employees whose review state is "to review" or "anomaly", a warning message for review is shown, but it shows only employees records with "to review" state. This commit adds the employees with "anomaly" state as well. task-6095318
This update resolves a critical error preventing customers from connecting or refreshing their Shopee accounts through the Odoo module. The fix corrects a technical issue within the module's code, ensuring a smoother onboarding experience. New automated tests have been added to prevent similar problems in the future.
Original PR description
Currently, customers report errors when connecting or refreshing a Shopee account through the `sale_shopee` module. **Steps to reproduce:** - Install and configure the `sale_shopee` module - Attempt…
Currently, customers report errors when connecting or refreshing a Shopee account through the `sale_shopee` module. **Steps to reproduce:** - Install and configure the `sale_shopee` module - Attempt to connect a Shopee account via the onboarding flow - Complete the authorization process **Observed behavior:** An error is raised during the authorization callback, preventing the Shopee account from being connected or refreshed. **Root cause:** In `onboarding.py`, the `shopee_return_from_authorization` controller incorrectly uses `utils.with_context(authorization_code=code)`. Since `utils` is an imported Python module, calling `with_context` on it attempts to set the context on the module itself rather than on a model instance, which raises an error. **Solution:** Move the `with_context` call from the `utils` module to the `temp_shop` record, which is the appropriate model instance that needs the context. Additionally, this commit adds regression tests for the controller to prevent future regressions, as this functionality was previously untested. opw-6092524 Forward-Port-Of: odoo/enterprise#113081
This update resolves a problem where PDF previews within invoices were not displaying correctly after a recent update to the PDF viewer. The fix restores a key setting that allows the system to properly extract and display the embedded PDF data, ensuring invoices with attached PDFs open correctly.
Original PR description
Steps to reproduce: 1. Upload an XML invoice (e.g., UBL) containing an embedded PDF into the Documents app. 2. Select the document to open the preview panel. 3. The viewer opens but shows a…
Steps to reproduce: 1. Upload an XML invoice (e.g., UBL) containing an embedded PDF into the Documents app. 2. Select the document to open the preview panel. 3. The viewer opens but shows a grey/empty PDF viewer. Context: Commit odoo/odoo@5035107e introduced an updated PDF viewer.js. Subsequently, commit d3481a5e removed the `download=0` query parameter from the viewer route to prevent `new URL()` parsing errors on relative paths. However, the backend specifically relies on the `download=0` flag to intercept the request, extract the Base64 data, and serve the raw PDF binary. Without this parameter, the backend serves the raw XML string directly to the PDF viewer, causing the parser to crash. Fix: Restore the `download=0` parameter by using the core `url` utility to construct a safe, absolute URL before encoding it for the viewer. This satisfies the strict `new URL()` parsing in the updated PDF viewer while ensuring the backend correctly triggers the PDF extraction. Task-6065246 Forward-Port-Of: odoo/enterprise#112007
This update resolves a memory issue that was impacting the performance of the HR payroll dashboard. The team optimized the data processing method, switching from complex unions to a simpler list-based approach. This change results in a faster and more stable dashboard experience.
Original PR description
Instead of using union in _group_records_by_schedule and _group_by_warning_and_date we append in a list and browse to avoid memory errors Forward-Port-Of: odoo/enterprise#113543