Browse Source

Merge branch '7.0-extract' into 8.0-web_advanced_search_wildcard

pull/298/head
lfreeke 9 years ago
parent
commit
b26a50ce1d
  1. 0
      web_advanced_search_wildcard/__init__.py
  2. 47
      web_advanced_search_wildcard/__openerp__.py
  3. 27
      web_advanced_search_wildcard/i18n/de.po
  4. 24
      web_advanced_search_wildcard/i18n/en.po
  5. 23
      web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot
  6. 6
      web_advanced_search_wildcard/static/src/js/search.js

0
web_advanced_search_wildcard/__init__.py

47
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. (<http://openerp.com>).
# Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>).
# Author Thomas Rehn <thomas.rehn at initos.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name": "Webmodule add wildcard operators for advanced search",
"version": "0.1",
"depends": ["web"],
'author': "initOS GmbH & Co. KG,Odoo Community Association (OCA)",
"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,
}

27
web_advanced_search_wildcard/i18n/de.po

@ -0,0 +1,27 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
#
# Rudolf Schnapka <schnapkar@golive-saar.de>, 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 <schnapkar@golive-saar.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\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:4
#, python-format
msgid "matches"
msgstr "gleicht"

24
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 <transbot@odoo-community.org>\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"

23
web_advanced_search_wildcard/i18n/web_advanced_search_wildcard.pot

@ -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: web_advanced_search_wildcard
#. openerp-web
#: code:addons/web_advanced_search_wildcard/static/src/js/search.js:4
#, python-format
msgid "matches"
msgstr ""

6
web_advanced_search_wildcard/static/src/js/search.js

@ -0,0 +1,6 @@
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")}
);
};
Loading…
Cancel
Save