odoo/o-spreadsheet#4597

Created by BI, Rémi Rahir (rar)
Merged at e455ac0854dbde8cf296cba772c36fa2d5e3b0fb

Statuses:

label
odoo:17.0-fix-cf-eval-rar
head
90782e4eec701c2240b42226b1f0c3f0cf0ea47a
merged
2 years ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
17.0 #4597

[FIX] CF: Ignore errors thrown during CF evaluation

How to reproduce:
- Add a CF of type "single color"
- Input an invalid formula as its value
- save the CF

-> the whole grid crashes

Historically, the CF evaluation was wrapped in a try-catch statement and it was removed #3380 as it seemed unnecessary. Unfortunately, since there is no check on the formula validity when we create the CF, the call to compile can crash.

A future improvement (targetting master) will align the behaviour of "cellIsRule" with the other CF type ("ColorScaleRule" and "IconSetRule") and catch invalid formulas in the allowDispatch.

task-4036921

Description:

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

Task: : TASK_ID

review checklist