[FIX] spreadsheet_edition: autofill references in pivot functions

See enterprise PR

closes odoo/odoo#135024

Task: 3458637
X-original-commit: 8bfc188ca4fb9cd8d1e351c0e6d4adbf195405fb
Related: odoo/enterprise#47224
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
This commit is contained in:
Lucas Lefèvre (lul)
2023-09-18 10:14:05 +00:00
parent 02720ba28c
commit 65962d09c3
@@ -94,3 +94,10 @@ export function isEmpty(item) {
}
return false;
}
export function containsReferences(cell) {
if (!cell.isFormula) {
return false;
}
return cell.compiledFormula.tokens.some((token) => token.type === "REFERENCE");
}