Daily updates from Odoo
Wednesday, August 19, 2020
1 change
Resolved issues and error corrections
Spreadsheet pivot tables now avoid repeating the same lookup for subgroup names while data is loading. This reduces unnecessary server calls and should make affected spreadsheets feel more responsive, especially with relational groupings.
Original PR description
If a pivot subgroup is a relational field (e.g. grouped by date:month > salesteam) the display names of the relational records are fetched once per parent group, resulting in many useless RPC calls. This happens because all header evaluations are done asynchronously and they all try to load the display name, even if it's already being fetched (but not resolved yet). Instead of waiting for the label then give it to the cache, the promise is directly given to the cache. That way, the promise can be awaited by others.