Daily updates from Odoo
Saturday, November 29, 2025
1 change · saas-18.3
Resolved issues and error corrections
This update fixes an issue where the 'Warnings' filter in search views for manufacturing and inventory modules didn't accurately identify records with warnings. The fix ensures that records with warning or danger statuses are correctly displayed when filtering, preventing users from missing critical exceptions and improving operational efficiency.
Original PR description
Issue Before This Commit: ======================= Currently, when the `Warnings` filter was applied in search view of `mrp.production`, `purchase.order`, `stock.picking`, or `product.template`…
Issue Before This Commit: ======================= Currently, when the `Warnings` filter was applied in search view of `mrp.production`, `purchase.order`, `stock.picking`, or `product.template` models, records without any warning were shown instead of those with a warning or danger status. As a result, users may overlook records requiring attention, since records marked with warning or danger were not visible when filtering leading to confusion and missed follow-ups. Steps to Reproduce: ======================= - Install the `MRP` module. - Go to Manufacturing → Operations → Manufacturing Orders. - Create 1–2 demo MOs. Apply the `Warnings` filter in the search view. - Observe that records without warning or danger status are displayed. Cause of the Issue: ======================= In this [commit](https://github.com/odoo/odoo/commit/92301a5b300dec1ddfca44dc35318b83d67c56fa), the `_search_activity_exception_decoration` method was incorrectly modified to handle negative operators. When a negative operator (like `not in`) is used, the method tried to complete the search using the positive `in` operator, causing incorrect filtering and returning records without warning or danger status. With This Commit: ======================= The unnecessary condition handling negative operators has been removed. The method now correctly uses the operator provided in the search, ensuring that the warnings filter returns only records with a warning or danger status. This fix eliminates confusion caused by incorrect search results and reduces the risk of missing critical exceptions during processing. TaskID-5154877