Daily updates from Odoo
Wednesday, February 7, 2024
1 change · master
Code cleanup and technical improvements
Spreadsheet missing-cell checks now run only when a user opens the dialog to insert a specific pivot cell, instead of during every spreadsheet evaluation. This reduces unnecessary processing, especially for dashboards or spreadsheets not being edited, while keeping the feature in the spreadsheet editing area where it belongs.
Original PR description
This commit moves the cell missing logic from the pivot model to spreadsheet edition. The objective is twofold: * It's not necessary to recompute the missing cells when the spreadsheet is not open in edition mode. (e.g. dashboard) * The missing cells feature is a feature of spreadsheet_edition, so it makes sense to move it to the spreadsheet_edition module. This commit also changes the way the missing cells are computed. The missing cells are now computed **only** when the user opens the spreadsheet dialog to insert a specific pivot cell. This is more efficient than recomputing the missing cells at each evaluation. Task: 3724263