From cabba664fd48dde3341b30c62d725c753e4a1e95 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Thu, 14 Dec 2023 16:15:08 +0100 Subject: [PATCH] [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) Signed-off-by: Hubert Van De Walle --- addons/web/static/src/views/fields/float/float_field.js | 2 +- .../static/src/views/fields/float_toggle/float_toggle_field.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/views/fields/float/float_field.js b/addons/web/static/src/views/fields/float/float_field.js index 8ab9b67e6fe..b3699a172da 100644 --- a/addons/web/static/src/views/fields/float/float_field.js +++ b/addons/web/static/src/views/fields/float/float_field.js @@ -96,7 +96,7 @@ export const floatField = { { label: _t("Digits"), name: "digits", - type: "string", + type: "digits", }, { label: _t("Type"), diff --git a/addons/web/static/src/views/fields/float_toggle/float_toggle_field.js b/addons/web/static/src/views/fields/float_toggle/float_toggle_field.js index a29acc7960d..2bd7ca1f1fd 100644 --- a/addons/web/static/src/views/fields/float_toggle/float_toggle_field.js +++ b/addons/web/static/src/views/fields/float_toggle/float_toggle_field.js @@ -60,7 +60,7 @@ export const floatToggleField = { { label: _t("Digits"), name: "digits", - type: "string", + type: "digits", }, { label: _t("Type"),