Monday, September 16, 2024
1 change
Resolved issues and error corrections
This fix removes an unnecessary assignment in the manufacturing work order module that was causing the system to update records every time they were read. This was creating unnecessary database updates and significantly slowing down performance. The fix ensures data is only updated when it actually changes.
Original PR description
Inside `_compute_component_data`, we assign `component_uom_id` but this field is actually a related field and shouldn't be assigned outside its compute. This useless assignment will update the record every time it's read (will update _log_access fields) and can cause a lot of performance degradation: see https://github.com/odoo/odoo/issues/136044#issuecomment-2348689221. Forward-Port-Of: odoo/enterprise#70025