[FIX] correct js reference

This commit is contained in:
Holger Brunn
2015-05-27 19:40:16 +02:00
parent fc15a0c833
commit d43dd07625

View File

@@ -292,7 +292,7 @@ openerp.web_advanced_search_x2x = function(instance)
this._super.apply(this, arguments);
this.view.query.each(function(element)
{
if(element.attributes.category != _t("Advanced"))
if(element.attributes.category != instance.web._t("Advanced"))
{
return;
}
@@ -319,7 +319,7 @@ openerp.web_advanced_search_x2x = function(instance)
}
self.view.query.remove(element.cid);
self.view.query.add({
category: _t("Advanced"),
category: instance.web._t("Advanced"),
values: element.attributes.values,
field: _.extend(
element.attributes.field, {