Monday, March 2, 2026
1 change · 19.0
Enhancements to existing features
The product attribute value workflow now uses more efficient database filtering instead of slower record-by-record processing. This significantly reduces the time needed to add attribute values to products for customers with large product catalogs, improving a process that previously could take several minutes.
Original PR description
opw-4876370 Issue: A customer who uses many attribute values complained that the "add to products" button on product attribute values in their database was really slow (8 minutes or so). Upon investigation I found parts of the involved functions used iteration over a set of records, which proved notably slower to psql searches. Fix: Replacing the code with what I believe is equivalent operations making use of the `search` method to filter through the sets much quicker. Behaviour after fix: The process takes 2-3 minutes when running this commit on the aforementioned database, but it's still a major improvement compared to the previous time. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#232149