odoo/o-spreadsheet#3856

Created by Website, Julien Launois (jula)
Merged at fe4ffe1dbad8c5d3b5bac2b849f34a2c250a83bc

Statuses:

label
odoo:17.0-export-export-non-Excel-formulas-as-value-jula
head
fb0400d9def19564cab55547595497657f6fab5d
merged
3 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

[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