Wednesday, December 18, 2024
3 changes · master
Resolved issues and error corrections
A minor issue in Documents Spreadsheet tests was corrected so negative filter offsets are handled as a complete value instead of being checked character by character. This prevents unnecessary console warnings and helps keep testing output clean and reliable.
Original PR description
In unit tests, when global filter offsets are added with negative values, we have a warning in the console saying that the symbol '-' cannot be parsed. The reason behind the warning is that the input element triggers an onChange event whenever a new character is added. The commit fixes this issue by setting the option `instantly` to true to only trigger the onChange with the whole new value. task-4397783
Product lists and searches have been adjusted so large product catalogs load much faster. This improves day-to-day responsiveness for businesses managing very high volumes of products, without changing the core product workflow.
Original PR description
For performance reasons: - the is_favorite field is moved from the model's _order to the related tree & kanban views - on product.product it is now a stored related to product.template From nim-odoo survey on a database containing more than 1 million products - stored related field & index: improvement in all cases (2500ms => 500 ms) - limit order & adapt views: name search will be fast (~2 ms)
A broken internal test for subscriptions was removed because it referred to functionality that no longer exists. This prevents unnecessary test failures and helps keep future updates more reliable without changing customer-facing behavior.
Original PR description
File was added unimported in #72347, and tries to test things related to a model `sale.order.alert` removed in #70180 (merged two weeks earlier).