Browse Source

[PORT][8.0] port web_advanced_search_wildcard

Conflicts:
	web_advanced_search_wildcard/__openerp__.py
pull/1328/head
lfreeke 8 years ago
committed by sbejaoui
parent
commit
4993cdab24
  1. 43
      web_advanced_search_wildcard/README.rst
  2. 29
      web_advanced_search_wildcard/__openerp__.py
  3. 10
      web_advanced_search_wildcard/views/template.xml

43
web_advanced_search_wildcard/README.rst

@ -0,0 +1,43 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
============================
Web advanced search wildcard
============================
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".
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/web/issues/new?body=module:%20web_advanced_search_wildcard%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Contributors
------------
* Markus Schneider <>
* L Freeke <lfreeke@therp.nl>
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

29
web_advanced_search_wildcard/__openerp__.py

@ -22,26 +22,17 @@
##############################################################################
{
"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': [
"version": "8.0.1.0.0",
"category": "Uncategorized",
"license": 'AGPL-3',
"author": "initOS GmbH & Co. KG,Odoo Community Association (OCA), Therp BV",
"application": False,
"installable": True,
"depends": [
"web"
],
'test': [
'data': [
"views/template.xml",
],
'js': ['static/src/js/search.js'],
'installable': True,
'auto_install': False,
}

10
web_advanced_search_wildcard/views/template.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="assets_backend" name="web_advanced_search_wildcard assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_advanced_search_wildcard/static/src/js/search.js"></script>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save