[FIX] if nocreate=1 then also see that as true

This commit is contained in:
Tom Blauwendraat
2020-02-06 14:16:05 +01:00
committed by Tom Blauwendraat
parent 313b270c4a
commit b31d7d50ed

View File

@@ -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
}