mirror of https://github.com/OCA/web.git
[FIX] web_advanced_search_x2x: Several things
* Make it good-looking * Update known issues * Fix templates. * Make other operators work againpull/999/head
parent
2ede201e97
commit
0d4c24625a
|
@ -37,10 +37,9 @@ Note that you can stack searching for properties: Simply add another advanced se
|
||||||
Known issues / Roadmap
|
Known issues / Roadmap
|
||||||
======================
|
======================
|
||||||
|
|
||||||
* When you use *is [not] equal to* search system and click on an option with
|
* When you use *is in selection* search system and choose a domain, it gets
|
||||||
the mouse, the search dropdown gets hidden and you have to reopen it and
|
immediately applied, so to add a new condition, you will have to use again
|
||||||
reapply the filter. As a workaround, use the keyboard to select the option
|
the *Filters* menu.
|
||||||
you want.
|
|
||||||
|
|
||||||
Credits
|
Credits
|
||||||
=======
|
=======
|
||||||
|
|
|
@ -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()
|
x2x_autocomplete_open: function()
|
||||||
{
|
{
|
||||||
var widget = this._x2x_field.$input.autocomplete("widget");
|
var widget = this._x2x_field.$input.autocomplete("widget");
|
||||||
widget.on('click', 'li', function(e)
|
widget.on('click', 'li', function(event) {
|
||||||
{
|
event.stopPropagation();
|
||||||
widget.trigger(
|
|
||||||
'menuselect',
|
|
||||||
{item: jQuery(e.currentTarget)}
|
|
||||||
);
|
|
||||||
e.stopPropagation();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
get_domain: function () {
|
get_domain: function () {
|
||||||
|
@ -201,6 +196,8 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) {
|
||||||
* @return {jQuery.Deferred}
|
* @return {jQuery.Deferred}
|
||||||
*/
|
*/
|
||||||
value_rerender: function () {
|
value_rerender: function () {
|
||||||
|
this.value._x2x_field && this.value._x2x_field.destroy();
|
||||||
|
delete this.value._x2x_field;
|
||||||
return this.value.appendTo(
|
return this.value.appendTo(
|
||||||
this.$(".searchview_extended_prop_value").show().empty()
|
this.$(".searchview_extended_prop_value").show().empty()
|
||||||
);
|
);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend">
|
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend">
|
||||||
<xpath expr="." position="inside">
|
<xpath expr="." position="inside">
|
||||||
|
<link rel="stylesheet" href="/web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.less"/>
|
||||||
<script type="text/javascript" src="/web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js"/>
|
<script type="text/javascript" src="/web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue