odoo/o-spreadsheet#3903

Created by fw-bot
Merged at 9d960d270018da41f7ffa4c413afa00f9166675c

Statuses:

label
odoo:master-17.0-export-export-non-Excel-formulas-as-value-jula-8OnR-fw
head
d7e80ea8f0db95da77ed1b645381c1c8d8102c08
merged
2 years ago by BI, Vincent Schippefilt (vsc)
odoo/o-spreadsheet
17.0 #3856
saas-17.1 #3874
18.0
saas-17.2 #3902
19.0
saas-19.1
saas-19.2
saas-19.3
saas-19.4
20.0
master #3903

[FW][FIX] export: export non-Excel formulas as value

Current behavior before commit:
Since the commit 201aea7, when formulaCell is a FormulaCellWithDependencies, content might be set to raw formula even if it is not readable by Excel.

Description of the fix:
Prevent content to be set to the raw formula if isFormula === false.

Example of steps to reproduce the issue:
- Write a number in A1
- Write =FORMAT.LARGE.NUMBER(A1) in A2
- Save as XLSX and open in Excel -> A2 is not evaluated by Excel

opw-3782676

review checklist

Forward-Port-Of: #3874
Forward-Port-Of: #3856