mirror of https://github.com/OCA/web.git
parent
2f6c5f5410
commit
8a5a25edb7
|
@ -76,6 +76,19 @@ openerp.web_advanced_search_x2x = function(instance)
|
||||||
}
|
}
|
||||||
this.searchfield = new instance.web.form.FieldMany2One(
|
this.searchfield = new instance.web.form.FieldMany2One(
|
||||||
this, this.create_searchfield_node());
|
this, this.create_searchfield_node());
|
||||||
|
if(this.searchfield.field.domain)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// if this is a domain that depends on values we don't have
|
||||||
|
// remove it
|
||||||
|
jQuery.parseJSON(this.searchfield.field.domain);
|
||||||
|
}
|
||||||
|
catch(error)
|
||||||
|
{
|
||||||
|
this.searchfield.field.domain = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
return this.searchfield;
|
return this.searchfield;
|
||||||
},
|
},
|
||||||
operator_changed: function(e)
|
operator_changed: function(e)
|
||||||
|
|
Loading…
Reference in New Issue