mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_tree_many2one_clickable: Don't complain if there is no parameter defined
This commit is contained in:
@@ -47,7 +47,9 @@ openerp.web_tree_many2one_clickable = function(instance, local)
|
||||
.filter([['key', '=', 'web_tree_many2one_clickable.default']])
|
||||
.first()
|
||||
.then(function(param) {
|
||||
self.use_many2one_clickable = (param.value == 'true');
|
||||
if (param) {
|
||||
self.use_many2one_clickable = (param.value == 'true');
|
||||
}
|
||||
self.ir_option_clickable_loaded.resolve();
|
||||
});
|
||||
return this.ir_option_clickable_loaded;
|
||||
|
||||
Reference in New Issue
Block a user