Browse Source

[FIX] correct js reference

pull/134/head
Holger Brunn 10 years ago
parent
commit
d43dd07625
  1. 4
      web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js

4
web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js

@ -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, {

Loading…
Cancel
Save