[FIX] web: add new digits type in supportedOptions

The digits option was of type string, but it needs to be an array of two
integers.
We introduce a new digits type to handle that case.
This is used in studio, more info in the enterprise PR.

opw-3614919

closes odoo/odoo#148571

X-original-commit: 6dbf59a9db1a68069df7e922fcab673ce7f7ae5a
Related: odoo/enterprise#53865
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
This commit is contained in:
Hubert Van De Walle
2024-01-10 07:27:02 +00:00
parent 3e00a3f633
commit cabba664fd
2 changed files with 2 additions and 2 deletions
@@ -96,7 +96,7 @@ export const floatField = {
{
label: _t("Digits"),
name: "digits",
type: "string",
type: "digits",
},
{
label: _t("Type"),
@@ -60,7 +60,7 @@ export const floatToggleField = {
{
label: _t("Digits"),
name: "digits",
type: "string",
type: "digits",
},
{
label: _t("Type"),