odoo/o-spreadsheet#3874

Created by fw-bot
Merged at e4d2bd803ecf809f7b8657959c5d18b2f3211325

Statuses:

label
odoo:saas-17.1-17.0-export-export-non-Excel-formulas-as-value-jula-2WDK-fw
head
ea4d4abcc53ada9fd1514622b6bc229c8fcac69e
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: #3856