mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user