Daily updates from Odoo
Saturday, October 18, 2025
3 changes · saas-18.2
Resolved issues and error corrections
Fixed an issue in Odoo Sign where dragging a non-PDF file into an empty document view could show the same warning twice. Users now receive one clear warning, reducing confusion while keeping the upload behavior unchanged.
Original PR description
Issue: - When no documents exist and a user drags/drops a non-PDF file, the warning pop-up appears twice instead of once. - This happened when there were no documents in the view (when actionhelper is visible). Root Cause: - The `useSignViewButtons` hook was used in both the main view (List/Kanban) and the SignActionHelper component. - When a file was dropped, both components received the bus event and attempted to upload the file independently. - This caused duplicate processing and duplicate warning popups. Solution: - Added condition on bus call to distinguish between components. - Modified the bus event handler to skip processing in SignActionHelper components. - This ensures only the main view component handles file uploads from drag-and-drop. Impact: - Users now see the warning pop-up only once when uploading invalid files - Maintains all existing functionality while fixing the duplicate behavior task-5103284 Forward-Port-Of: odoo/enterprise#95512
The Documents dashboard now counts items in the official Inbox folder rather than relying on an Inbox tag. This keeps the KPI consistent with how the Inbox is defined and avoids test issues caused by demo records linked elsewhere.
Original PR description
After a discussion about what should be considered the inbox folder on earlier versions, it appears that the `kpi.provider:get_kpi_summary` method should return the count of documents in the folder having the external identifier `documents.documents_internal_folder`, instead of selecting the documents with the inbox tag. As some documents might be referenced by foreign keys in demo data, we also avoid to unlink the documents in the tests to avoid potential errors in the test suites. Runbot-build-error-id: [231787](https://runbot.odoo.com/odoo/runbot.build.error/231787) Task-id: [5062431](https://www.odoo.com/odoo/project.task/5062431) Forward-Port-Of: odoo/enterprise#97416 Forward-Port-Of: odoo/enterprise#95699
This fix keeps distributed rounding amounts aligned with their original invoice factors in Mexican electronic invoicing. It helps prevent incorrect rounding adjustments when generating compliant CFDI documents.
Original PR description
Before this commit, the factors were sorted and the amounts_to_distribute were build according this order. However, almost all calls to this method is zipping target_factors with amounts_to_distribute and both are no longer in the same order. Forward-Port-Of: odoo/enterprise#97399