odoo/o-spreadsheet#7909

Created by fw-bot
Merged at 7f1e3f8684dac64fa9ad79739789ee59fb418396

Statuses:

label
odoo:master-17.0-fix-update-cell-handle-rar-495401-fw
head
c853e2f0a11d1c2c7c1940bc8b5e0f04c79c2f27
merged
3 months ago by BI, Rémi Rahir (rar)
odoo/o-spreadsheet
17.0 #7795
18.0 #7886
saas-18.2 #7896
saas-18.3 #7897
saas-18.4 #7898
19.0 #7899
saas-19.1 #7900
saas-19.2
saas-19.3
master #7909

[FIX] Cell: do not rely on key presence in commands

In our handler of UPDATE_CELL, we rely on the presence of a given key in the command to decide how to process it. However, undefined keys tend to be purged from a payload when serialized, which mean different users do not receive the same command payload and their state ends up diverging.

E.g.:
- Alice write something in A1
- Alice copies an empty cell
- Alice pastes it to A1

For Alice, A1 is empty
for others, A1 content did not change

The same applies to the formats but can only be replicated in later versions (18.0 +):

Alice sees no % in A2 while other users see it.

task-5499921

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist

Forward-Port-Of: #7900
Forward-Port-Of: #7795