From 0055ec3e35bf283e4c417a9cfdb6fbf653414750 Mon Sep 17 00:00:00 2001 From: Markus Schneider Date: Mon, 15 Sep 2014 16:13:51 +0200 Subject: [PATCH 1/7] add web_advanced_search_wildcard module --- web_advanced_search_wildcard/__init__.py | 0 web_advanced_search_wildcard/__openerp__.py | 47 +++++++++++++++++++ web_advanced_search_wildcard/i18n/de.po | 6 +++ .../i18n/search_enhanced_operators.po | 23 +++++++++ .../static/src/js/search.js | 6 +++ 5 files changed, 82 insertions(+) create mode 100644 web_advanced_search_wildcard/__init__.py create mode 100644 web_advanced_search_wildcard/__openerp__.py create mode 100644 web_advanced_search_wildcard/i18n/de.po create mode 100644 web_advanced_search_wildcard/i18n/search_enhanced_operators.po create mode 100644 web_advanced_search_wildcard/static/src/js/search.js diff --git a/web_advanced_search_wildcard/__init__.py b/web_advanced_search_wildcard/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/web_advanced_search_wildcard/__openerp__.py b/web_advanced_search_wildcard/__openerp__.py new file mode 100644 index 00000000..3308ec6f --- /dev/null +++ b/web_advanced_search_wildcard/__openerp__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010-2013 OpenERP s.a. (). +# Copyright (C) 2014 initOS GmbH & Co. KG (). +# Author Thomas Rehn +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name": "Webmodule add wildcard operators for advanced search", + "version": "0.1", + "depends": ["web"], + 'author': 'initOS GmbH & Co. KG', + "category": "", + "summary": "Simular search in searchbar", + 'license': 'AGPL-3', + "description": """ + Allows =ilike operator to advanced search option. + Use % as a placeholder. + Example: "Zip matches 1%" gives all zip starting with 1 + Also allows insensitive exact search. + Example "Name matches john" will find "John" and "john" but not "Johnson". + """, + 'data': [ + ], + 'demo': [ + ], + 'test': [ + ], + 'js': ['static/src/js/search.js'], + 'installable': True, + 'auto_install': False, +} diff --git a/web_advanced_search_wildcard/i18n/de.po b/web_advanced_search_wildcard/i18n/de.po new file mode 100644 index 00000000..314c4df2 --- /dev/null +++ b/web_advanced_search_wildcard/i18n/de.po @@ -0,0 +1,6 @@ +#. module: web +#. openerp-web +#: code:addons/search_enhanced_operators/static/src/js/search.js:3 +#, python-format +msgid "matches" +msgstr "entspricht" diff --git a/web_advanced_search_wildcard/i18n/search_enhanced_operators.po b/web_advanced_search_wildcard/i18n/search_enhanced_operators.po new file mode 100644 index 00000000..d6a1a5ac --- /dev/null +++ b/web_advanced_search_wildcard/i18n/search_enhanced_operators.po @@ -0,0 +1,23 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-09-15 09:11+0000\n" +"PO-Revision-Date: 2014-09-15 11:12+0100\n" +"Last-Translator: M\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" + +#. module: search_enhanced_operators +#. openerp-web +#: code:addons/search_enhanced_operators/static/src/js/search.js:4 +#, python-format +msgid "matches" +msgstr "" + diff --git a/web_advanced_search_wildcard/static/src/js/search.js b/web_advanced_search_wildcard/static/src/js/search.js new file mode 100644 index 00000000..4a5318a8 --- /dev/null +++ b/web_advanced_search_wildcard/static/src/js/search.js @@ -0,0 +1,6 @@ +openerp.search_enhanced_operators = function(instance){ + var _lt = instance.web._lt; + instance.web.search.ExtendedSearchProposition.Char.prototype.operators.push( + {value: '=ilike', text: _lt("matches")} + ); +}; From 3b267404abda032b1d233fc5451603cb1d65e0ad Mon Sep 17 00:00:00 2001 From: Markus Schneider Date: Thu, 18 Sep 2014 13:07:44 +0200 Subject: [PATCH 2/7] rename empty translation file --- ...rch_enhanced_operators.po => web_advanced_search_wildcard.pot} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename web_advanced_search_wildcard/i18n/{search_enhanced_operators.po => web_advanced_search_wildcard.pot} (100%) diff --git a/web_advanced_search_wildcard/i18n/search_enhanced_operators.po b/web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot similarity index 100% rename from web_advanced_search_wildcard/i18n/search_enhanced_operators.po rename to web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot From 05670d48ff5c5880d11e2ed727721faf55616cf0 Mon Sep 17 00:00:00 2001 From: Markus Schneider Date: Mon, 22 Sep 2014 11:13:21 +0200 Subject: [PATCH 3/7] rename module inside translation file --- web_advanced_search_wildcard/i18n/de.po | 2 +- .../i18n/web_advanced_search_wildcard.pot | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web_advanced_search_wildcard/i18n/de.po b/web_advanced_search_wildcard/i18n/de.po index 314c4df2..bfc97d1a 100644 --- a/web_advanced_search_wildcard/i18n/de.po +++ b/web_advanced_search_wildcard/i18n/de.po @@ -1,6 +1,6 @@ #. module: web #. openerp-web -#: code:addons/search_enhanced_operators/static/src/js/search.js:3 +#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:3 #, python-format msgid "matches" msgstr "entspricht" diff --git a/web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot b/web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot index d6a1a5ac..e187a2da 100644 --- a/web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot +++ b/web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot @@ -14,9 +14,9 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -#. module: search_enhanced_operators +#. module: web_advanced_search_wildcard #. openerp-web -#: code:addons/search_enhanced_operators/static/src/js/search.js:4 +#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:4 #, python-format msgid "matches" msgstr "" From 760f58ed89c159dbf33347d393077dc7b5cf37c3 Mon Sep 17 00:00:00 2001 From: Rudolf Schnapka Date: Sun, 4 Jan 2015 14:51:33 +0100 Subject: [PATCH 4/7] initial german translations (and added pot-file) --- web_advanced_search_wildcard/i18n/de.po | 27 ++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/web_advanced_search_wildcard/i18n/de.po b/web_advanced_search_wildcard/i18n/de.po index bfc97d1a..4cfbc4f3 100644 --- a/web_advanced_search_wildcard/i18n/de.po +++ b/web_advanced_search_wildcard/i18n/de.po @@ -1,6 +1,27 @@ -#. module: web +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +# Rudolf Schnapka , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-09-15 09:11+0000\n" +"PO-Revision-Date: 2015-01-04 14:07+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"Language: de\n" +"X-Generator: Lokalize 1.5\n" + +#. module: web_advanced_search_wildcard #. openerp-web -#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:3 +#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:4 #, python-format msgid "matches" -msgstr "entspricht" +msgstr "gleicht" + + From ce25456eda8af8313bdad730b8325dcb13a260fb Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 2 Mar 2015 17:29:16 +0100 Subject: [PATCH 5/7] Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. --- web_advanced_search_wildcard/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_advanced_search_wildcard/__openerp__.py b/web_advanced_search_wildcard/__openerp__.py index 3308ec6f..dd4ee58e 100644 --- a/web_advanced_search_wildcard/__openerp__.py +++ b/web_advanced_search_wildcard/__openerp__.py @@ -24,7 +24,7 @@ "name": "Webmodule add wildcard operators for advanced search", "version": "0.1", "depends": ["web"], - 'author': 'initOS GmbH & Co. KG', + 'author': "initOS GmbH & Co. KG,Odoo Community Association (OCA)", "category": "", "summary": "Simular search in searchbar", 'license': 'AGPL-3', From a5a75ae74900d94ed9a61f3c4eed1fc7672c0e9a Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 11 Oct 2015 10:34:46 -0400 Subject: [PATCH 6/7] OCA Transbot updated translations from Transifex --- web_advanced_search_wildcard/i18n/en.po | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 web_advanced_search_wildcard/i18n/en.po diff --git a/web_advanced_search_wildcard/i18n/en.po b/web_advanced_search_wildcard/i18n/en.po new file mode 100644 index 00000000..e85bb958 --- /dev/null +++ b/web_advanced_search_wildcard/i18n/en.po @@ -0,0 +1,24 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: web (7.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 17:50+0000\n" +"PO-Revision-Date: 2015-10-07 17:50+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: English (http://www.transifex.com/oca/OCA-web-7-0/language/en/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: en\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: web_advanced_search_wildcard +#. openerp-web +#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:4 +#, python-format +msgid "matches" +msgstr "matches" From d856389ce9897f5758dc94bdc04e1e93b9aa5e4e Mon Sep 17 00:00:00 2001 From: lfreeke Date: Thu, 21 Jan 2016 11:21:48 +0100 Subject: [PATCH 7/7] [FIX] Adept javascript to module name --- web_advanced_search_wildcard/static/src/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_advanced_search_wildcard/static/src/js/search.js b/web_advanced_search_wildcard/static/src/js/search.js index 4a5318a8..1b43dc0c 100644 --- a/web_advanced_search_wildcard/static/src/js/search.js +++ b/web_advanced_search_wildcard/static/src/js/search.js @@ -1,4 +1,4 @@ -openerp.search_enhanced_operators = function(instance){ +openerp.web_advanced_search_wildcard = function(instance){ var _lt = instance.web._lt; instance.web.search.ExtendedSearchProposition.Char.prototype.operators.push( {value: '=ilike', text: _lt("matches")}