[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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user