Browse Source

[MIG] web_advanced_search_x2x: Migrated to 10.0

pull/605/merge
ralwafaie 8 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 .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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 Known issues / Roadmap
====================== ======================
@ -50,6 +50,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl> * Holger Brunn <hbrunn@therp.nl>
* Vicent Cubells <vicent.cubells@tecnativa.com> * Vicent Cubells <vicent.cubells@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com> * Jairo Llopis <jairo.llopis@tecnativa.com>
* Rami Alwafaie <rami.alwafaie@initos.com>
Maintainer Maintainer
---------- ----------

4
web_advanced_search_x2x/__manifest__.py

@ -1,13 +1,15 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2015 Therp BV <http://therp.nl> # Copyright 2015 Therp BV <http://therp.nl>
# Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2017 initOS GmbH - Rami Alwafaie
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {
"name": "Search x2x fields", "name": "Search x2x fields",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Therp BV, " "author": "Therp BV, "
"Tecnativa, " "Tecnativa, "
"initOS GmbH, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",
"category": "Usability", "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 2015 Therp BV <http://therp.nl>
* Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> * 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). */ * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define('web_advanced_search_x2x.search_filters', function (require) { 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 () { get_operator: function () {
return !this.isDestroyed() && return !this.isDestroyed() &&
this.getParent().$('.searchview_extended_prop_op').val();
this.getParent().$('.o_searchview_extended_prop_op').val();
}, },
get_value: function () { get_value: function () {
try { try {
@ -199,7 +200,7 @@ odoo.define('web_advanced_search_x2x.search_filters', function (require) {
this.value._x2x_field && this.value._x2x_field.destroy(); this.value._x2x_field && this.value._x2x_field.destroy();
delete this.value._x2x_field; delete this.value._x2x_field;
return this.value.appendTo( 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"/> <div class="oe_form"/>
</t> </t>
<t t-if="!widget.relational"> <t t-if="!widget.relational">
<t t-call="SearchView.extended_search.proposition.char" />
<t t-call="SearchView.extended_search.proposition" />
</t> </t>
</t> </t>
</templates> </templates>
Loading…
Cancel
Save