Thursday, March 21, 2024
1 change · saas-17.1
Enhancements to existing features
Expense prices tied to product categories are now updated more efficiently. The change limits recalculations to relevant unsubmitted expenses, helping improve performance without changing the normal expense workflow.
Original PR description
This enhancement optimizes the computation of prices for expenses associated with product categories. Previously, the computation was inefficient, relying on a stored computed field directly linked to product_id.standard_price. This commit overrides the write method on the product to only update unsubmitted expenses using the product as a category. The dependence is also changed to product_id instead of product_id.standard_price for better performance. Both changes aim to improve the performance. task-3741886