Merge pull request #1514 from sunflowerit/10.0-web_m2x_options_1isalsotrue

[FIX] if nocreate=1 then also see that as true
This commit is contained in:
Daniel Reis
2023-12-27 15:14:30 +00:00
committed by GitHub

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
}