Skip to content

Commit b31d7d5

Browse files
Tom BlauwendraatTom Blauwendraat
Tom Blauwendraat
authored and
Tom Blauwendraat
committed
[FIX] if nocreate=1 then also see that as true
1 parent 313b270 commit b31d7d5

File tree

1 file changed

+1
-1
lines changed
  • web_m2x_options/static/src/js

1 file changed

+1
-1
lines changed

web_m2x_options/static/src/js/form.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
8787
var is_string = typeof option === 'string'
8888
var is_bool = typeof option === 'boolean'
8989
if (is_string) {
90-
return option === 'true' || option === 'True'
90+
return option === 'true' || option === 'True' || option === '1'
9191
} else if (is_bool) {
9292
return option
9393
}

0 commit comments

Comments
 (0)