Browse Source

Merge pull request #716 from Tecnativa/10.0-web_advanced_search_x2x-fix_false_text

[FIX][web_advanced_search_x2x] Fix "false" label
pull/720/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
9df3f77a76
  1. 2
      web_advanced_search_x2x/__manifest__.py
  2. 3
      web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js

2
web_advanced_search_x2x/__manifest__.py

@ -5,7 +5,7 @@
{ {
"name": "Search x2x fields", "name": "Search x2x fields",
"version": "10.0.2.0.0",
"version": "10.0.2.0.1",
"author": "Therp BV, " "author": "Therp BV, "
"Tecnativa, " "Tecnativa, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",

3
web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js

@ -172,6 +172,9 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) {
get_value: function () { get_value: function () {
try { try {
if (!this.x2x_widget_name()) {
throw "No x2x widget, fallback to default";
}
return this._x2x_field.get_value(); return this._x2x_field.get_value();
} catch (error) { } catch (error) {
return this._super.apply(this, arguments); return this._super.apply(this, arguments);

Loading…
Cancel
Save