Browse Source

[MIG] web_advanced_search_x2x: Migrated to 10.0

pull/605/merge
ralwafaie 7 years ago
committed by Jairo Llopis
parent
commit
588c5cdaaf
  1. 3
      web_advanced_search_x2x/README.rst
  2. 4
      web_advanced_search_x2x/__manifest__.py
  3. 5
      web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js
  4. 2
      web_advanced_search_x2x/static/src/xml/web_advanced_search_x2x.xml

3
web_advanced_search_x2x/README.rst

@ -32,7 +32,7 @@ Note that you can stack searching for properties: Simply add another advanced se
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/154/9.0
:target: https://runbot.odoo-community.org/runbot/162/10.0
Known issues / Roadmap
======================
@ -50,6 +50,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Rami Alwafaie <rami.alwafaie@initos.com>
Maintainer
----------

4
web_advanced_search_x2x/__manifest__.py

@ -1,13 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Therp BV <http://therp.nl>
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2017 initOS GmbH - Rami Alwafaie
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Search x2x fields",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Therp BV, "
"Tecnativa, "
"initOS GmbH, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Usability",

5
web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js

@ -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()
);
},
});

2
web_advanced_search_x2x/static/src/xml/web_advanced_search_x2x.xml

@ -8,7 +8,7 @@
<div class="oe_form"/>
</t>
<t t-if="!widget.relational">
<t t-call="SearchView.extended_search.proposition.char" />
<t t-call="SearchView.extended_search.proposition" />
</t>
</t>
</templates>
Loading…
Cancel
Save