|
|
@ -1,5 +1,6 @@ |
|
|
|
/* Copyright 2015 Therp BV <http://therp.nl> |
|
|
|
* Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> |
|
|
|
* Copyright 2017 Rami Alwafaie <rami.alwafaie@initos.com> |
|
|
|
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
|
|
|
|
|
|
|
odoo.define('web_advanced_search_x2x.search_filters', function (require) { |
|
|
@ -143,7 +144,7 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) { |
|
|
|
}, |
|
|
|
get_operator: function () { |
|
|
|
return !this.isDestroyed() && |
|
|
|
this.getParent().$('.searchview_extended_prop_op').val(); |
|
|
|
this.getParent().$('.o_searchview_extended_prop_op').val(); |
|
|
|
}, |
|
|
|
get_value: function () { |
|
|
|
try { |
|
|
@ -199,7 +200,7 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) { |
|
|
|
this.value._x2x_field && this.value._x2x_field.destroy(); |
|
|
|
delete this.value._x2x_field; |
|
|
|
return this.value.appendTo( |
|
|
|
this.$(".searchview_extended_prop_value").show().empty() |
|
|
|
this.$(".o_searchview_extended_prop_value").show().empty() |
|
|
|
); |
|
|
|
}, |
|
|
|
}); |
|
|
|