odoo/o-spreadsheet#5445

Created by fw-bot
Merged at 7b120ef35fcbbcd56f1c648b39e114d06ba7b3e3

Statuses:

label
odoo:saas-18.1-18.0-snapshot-when-open-xlsx-mera-a1GV-fw
head
5987a53f65874b6e56f197c4b7befe44de614a54
merged
1 year ago by Mehdi Rachico (mera)
odoo/o-spreadsheet
18.0 #5320
saas-18.1 #5445
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
saas-19.2
saas-19.3
master #5446

[FW][IMP] model: create snapshot when loading xlsx file

Before this commit, when uploading an XLSX file, the code in the Odoo repository would create a spreadsheet document with data that is encoded in xml. Whenever the file is loaded, we parse the stringified xml to convert it to the o-spreadsheet json structure. The problem is that this conversion can be quite slow and costly when the XLSX file is large.

This commit mitigates the issue by saving a snapshot once the XLSX file is loaded for the first time.

Task: 4080514

review checklist

Forward-Port-Of: #5320