From b31d7d50edae16bc93e65e273ec6bfa2cd941db9 Mon Sep 17 00:00:00 2001 From: Tom Blauwendraat Date: Thu, 6 Feb 2020 14:16:05 +0100 Subject: [PATCH] [FIX] if nocreate=1 then also see that as true --- web_m2x_options/static/src/js/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_m2x_options/static/src/js/form.js b/web_m2x_options/static/src/js/form.js index c6c27289dd38..7ca4db268f63 100644 --- a/web_m2x_options/static/src/js/form.js +++ b/web_m2x_options/static/src/js/form.js @@ -87,7 +87,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) { var is_string = typeof option === 'string' var is_bool = typeof option === 'boolean' if (is_string) { - return option === 'true' || option === 'True' + return option === 'true' || option === 'True' || option === '1' } else if (is_bool) { return option }