mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_advanced_search_x2x: Several things
* Make it good-looking * Update known issues * Fix templates. * Make other operators work again
This commit is contained in:
committed by
Pedro M. Baeza
parent
2ede201e97
commit
0d4c24625a
@@ -0,0 +1,16 @@
|
||||
.openerp {
|
||||
.oe-search-options {
|
||||
.searchview_extended_prop_value {
|
||||
.oe_form {
|
||||
.ui-autocomplete-input {
|
||||
.form-control();
|
||||
}
|
||||
|
||||
.oe_m2o_drop_down_button {
|
||||
top: 6px;
|
||||
right: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -119,13 +119,8 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) {
|
||||
x2x_autocomplete_open: function()
|
||||
{
|
||||
var widget = this._x2x_field.$input.autocomplete("widget");
|
||||
widget.on('click', 'li', function(e)
|
||||
{
|
||||
widget.trigger(
|
||||
'menuselect',
|
||||
{item: jQuery(e.currentTarget)}
|
||||
);
|
||||
e.stopPropagation();
|
||||
widget.on('click', 'li', function(event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
},
|
||||
get_domain: function () {
|
||||
@@ -201,6 +196,8 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) {
|
||||
* @return {jQuery.Deferred}
|
||||
*/
|
||||
value_rerender: function () {
|
||||
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()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user