Daily updates from Odoo
Monday, February 8, 2021
1 change · master
Code cleanup and technical improvements
This update prepares spreadsheets for real-time collaboration by changing how pivot tables are built and shared. Instead of sharing a pivot action that can produce different results depending on timing, users will share the final cell changes so everyone sees the same pivot table.
Original PR description
This is a preliminary work for real time collaboration. Only core commands will be shared across users. The current ADD_PIVOT command is currently problematic since its effect depends on *when* it is applied because the resulting pivot depends on the *current* data. Applying the same ADD_PIVOT at different times could lead to different pivot cells. With this commit, building the pivot structure is no longer part of a core plugin. Only the resulting core commands of the build (UPDATE_CELL, ADD_MERGE, etc.) will be shared accross user, ensuring they all have the same pivot cells. Co-authored-by: pro-odoo <pro@odoo.com>