diff --git a/base_search_fuzzy/README.rst b/base_search_fuzzy/README.rst index 03a90789d..baebdf45c 100644 --- a/base_search_fuzzy/README.rst +++ b/base_search_fuzzy/README.rst @@ -73,7 +73,7 @@ Bug Tracker Bugs are tracked on `GitHub 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. +help us smash it by providing detailed and welcomed feedback. Credits ======= @@ -89,6 +89,7 @@ Contributors * Christoph Giesel * Jordi Ballester * Serpent Consulting Services Pvt. Ltd. +* Dave Lasley Maintainer ---------- diff --git a/base_search_fuzzy/__openerp__.py b/base_search_fuzzy/__manifest__.py similarity index 96% rename from base_search_fuzzy/__openerp__.py rename to base_search_fuzzy/__manifest__.py index fbfdfa3c5..b4dfddc23 100644 --- a/base_search_fuzzy/__openerp__.py +++ b/base_search_fuzzy/__manifest__.py @@ -6,7 +6,7 @@ 'name': "Fuzzy Search", 'summary': "Fuzzy search with the PostgreSQL trigram extension", 'category': 'Uncategorized', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'website': 'https://odoo-community.org/', 'author': 'bloopark systems GmbH & Co. KG, ' 'Eficent, ' diff --git a/base_search_fuzzy/i18n/am.po b/base_search_fuzzy/i18n/am.po index 82c2b6a48..384547e69 100644 --- a/base_search_fuzzy/i18n/am.po +++ b/base_search_fuzzy/i18n/am.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ar.po b/base_search_fuzzy/i18n/ar.po index 8196def4b..da024db6f 100644 --- a/base_search_fuzzy/i18n/ar.po +++ b/base_search_fuzzy/i18n/ar.po @@ -7,7 +7,7 @@ # SaFi J. , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/base_search_fuzzy.pot b/base_search_fuzzy/i18n/base_search_fuzzy.pot index deaf7d891..9c8e3ad8a 100644 --- a/base_search_fuzzy/i18n/base_search_fuzzy.pot +++ b/base_search_fuzzy/i18n/base_search_fuzzy.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0alpha1\n" +"Project-Id-Version: Odoo Server 10.0alpha1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-24 08:47+0000\n" "PO-Revision-Date: 2016-06-24 08:47+0000\n" diff --git a/base_search_fuzzy/i18n/bg.po b/base_search_fuzzy/i18n/bg.po index 539cc8f35..1c7376bb4 100644 --- a/base_search_fuzzy/i18n/bg.po +++ b/base_search_fuzzy/i18n/bg.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/bs.po b/base_search_fuzzy/i18n/bs.po index 17895634e..4cbc335cd 100644 --- a/base_search_fuzzy/i18n/bs.po +++ b/base_search_fuzzy/i18n/bs.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ca.po b/base_search_fuzzy/i18n/ca.po index 693ded24a..d7149aaea 100644 --- a/base_search_fuzzy/i18n/ca.po +++ b/base_search_fuzzy/i18n/ca.po @@ -7,7 +7,7 @@ # Carles Antoli , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-17 13:11+0000\n" "PO-Revision-Date: 2017-01-17 13:11+0000\n" diff --git a/base_search_fuzzy/i18n/cs.po b/base_search_fuzzy/i18n/cs.po index bdea0b03f..3f34506f4 100644 --- a/base_search_fuzzy/i18n/cs.po +++ b/base_search_fuzzy/i18n/cs.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/da.po b/base_search_fuzzy/i18n/da.po index f8756cf17..64ee4ca15 100644 --- a/base_search_fuzzy/i18n/da.po +++ b/base_search_fuzzy/i18n/da.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/de.po b/base_search_fuzzy/i18n/de.po index ce4d87ff1..3ed79ae5f 100644 --- a/base_search_fuzzy/i18n/de.po +++ b/base_search_fuzzy/i18n/de.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/el_GR.po b/base_search_fuzzy/i18n/el_GR.po index 2afc635a4..be762f620 100644 --- a/base_search_fuzzy/i18n/el_GR.po +++ b/base_search_fuzzy/i18n/el_GR.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/en_GB.po b/base_search_fuzzy/i18n/en_GB.po index 48309f099..d34c105b3 100644 --- a/base_search_fuzzy/i18n/en_GB.po +++ b/base_search_fuzzy/i18n/en_GB.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es.po b/base_search_fuzzy/i18n/es.po index fc5f0b1fd..14f397770 100644 --- a/base_search_fuzzy/i18n/es.po +++ b/base_search_fuzzy/i18n/es.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_AR.po b/base_search_fuzzy/i18n/es_AR.po index 207244fdf..2baf38e62 100644 --- a/base_search_fuzzy/i18n/es_AR.po +++ b/base_search_fuzzy/i18n/es_AR.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_CL.po b/base_search_fuzzy/i18n/es_CL.po index a7b92317d..4b61cb559 100644 --- a/base_search_fuzzy/i18n/es_CL.po +++ b/base_search_fuzzy/i18n/es_CL.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_CO.po b/base_search_fuzzy/i18n/es_CO.po index b13c89e6d..126e69e1d 100644 --- a/base_search_fuzzy/i18n/es_CO.po +++ b/base_search_fuzzy/i18n/es_CO.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_CR.po b/base_search_fuzzy/i18n/es_CR.po index e3c18aa1f..ec629c032 100644 --- a/base_search_fuzzy/i18n/es_CR.po +++ b/base_search_fuzzy/i18n/es_CR.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_DO.po b/base_search_fuzzy/i18n/es_DO.po index 877f27e12..5347a074e 100644 --- a/base_search_fuzzy/i18n/es_DO.po +++ b/base_search_fuzzy/i18n/es_DO.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_EC.po b/base_search_fuzzy/i18n/es_EC.po index 412d9805d..1d6e15662 100644 --- a/base_search_fuzzy/i18n/es_EC.po +++ b/base_search_fuzzy/i18n/es_EC.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_ES.po b/base_search_fuzzy/i18n/es_ES.po index e7d2efd43..4790d6784 100644 --- a/base_search_fuzzy/i18n/es_ES.po +++ b/base_search_fuzzy/i18n/es_ES.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_MX.po b/base_search_fuzzy/i18n/es_MX.po index c298b5d53..1e69a64f8 100644 --- a/base_search_fuzzy/i18n/es_MX.po +++ b/base_search_fuzzy/i18n/es_MX.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_PE.po b/base_search_fuzzy/i18n/es_PE.po index fb99d384e..7fd24a2b6 100644 --- a/base_search_fuzzy/i18n/es_PE.po +++ b/base_search_fuzzy/i18n/es_PE.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_PY.po b/base_search_fuzzy/i18n/es_PY.po index cde99d548..c503c6101 100644 --- a/base_search_fuzzy/i18n/es_PY.po +++ b/base_search_fuzzy/i18n/es_PY.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/es_VE.po b/base_search_fuzzy/i18n/es_VE.po index 85df9e5b2..bccaf68d0 100644 --- a/base_search_fuzzy/i18n/es_VE.po +++ b/base_search_fuzzy/i18n/es_VE.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/et.po b/base_search_fuzzy/i18n/et.po index b6eba3517..e5a66f1a4 100644 --- a/base_search_fuzzy/i18n/et.po +++ b/base_search_fuzzy/i18n/et.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/eu.po b/base_search_fuzzy/i18n/eu.po index 52d1d25cc..d4cd7e93a 100644 --- a/base_search_fuzzy/i18n/eu.po +++ b/base_search_fuzzy/i18n/eu.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/fa.po b/base_search_fuzzy/i18n/fa.po index df2af2957..c9d1dd60a 100644 --- a/base_search_fuzzy/i18n/fa.po +++ b/base_search_fuzzy/i18n/fa.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/fi.po b/base_search_fuzzy/i18n/fi.po index 9394a3aba..c6e20a874 100644 --- a/base_search_fuzzy/i18n/fi.po +++ b/base_search_fuzzy/i18n/fi.po @@ -7,7 +7,7 @@ # Jarmo Kortetjärvi , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/fr.po b/base_search_fuzzy/i18n/fr.po index 9ff071199..3928955dd 100644 --- a/base_search_fuzzy/i18n/fr.po +++ b/base_search_fuzzy/i18n/fr.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/fr_CA.po b/base_search_fuzzy/i18n/fr_CA.po index 75a765290..8b91afbdb 100644 --- a/base_search_fuzzy/i18n/fr_CA.po +++ b/base_search_fuzzy/i18n/fr_CA.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/fr_CH.po b/base_search_fuzzy/i18n/fr_CH.po index f16165767..7069386fa 100644 --- a/base_search_fuzzy/i18n/fr_CH.po +++ b/base_search_fuzzy/i18n/fr_CH.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/gl.po b/base_search_fuzzy/i18n/gl.po index a31c99a7c..39ba8ac21 100644 --- a/base_search_fuzzy/i18n/gl.po +++ b/base_search_fuzzy/i18n/gl.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/gl_ES.po b/base_search_fuzzy/i18n/gl_ES.po index a6a84155d..1c199a9d9 100644 --- a/base_search_fuzzy/i18n/gl_ES.po +++ b/base_search_fuzzy/i18n/gl_ES.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/he.po b/base_search_fuzzy/i18n/he.po index fe97ef92f..4f5780a2a 100644 --- a/base_search_fuzzy/i18n/he.po +++ b/base_search_fuzzy/i18n/he.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/hr.po b/base_search_fuzzy/i18n/hr.po index 3524a057a..dc8627d1a 100644 --- a/base_search_fuzzy/i18n/hr.po +++ b/base_search_fuzzy/i18n/hr.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/hr_HR.po b/base_search_fuzzy/i18n/hr_HR.po index ed1b9c21a..aef7d4b0c 100644 --- a/base_search_fuzzy/i18n/hr_HR.po +++ b/base_search_fuzzy/i18n/hr_HR.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/hu.po b/base_search_fuzzy/i18n/hu.po index 3cc0b0320..1cf5c7a81 100644 --- a/base_search_fuzzy/i18n/hu.po +++ b/base_search_fuzzy/i18n/hu.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/id.po b/base_search_fuzzy/i18n/id.po index b15d2238a..b49665b4e 100644 --- a/base_search_fuzzy/i18n/id.po +++ b/base_search_fuzzy/i18n/id.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/it.po b/base_search_fuzzy/i18n/it.po index 1843c5044..f77e7a536 100644 --- a/base_search_fuzzy/i18n/it.po +++ b/base_search_fuzzy/i18n/it.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ja.po b/base_search_fuzzy/i18n/ja.po index 11e81788d..1466030ef 100644 --- a/base_search_fuzzy/i18n/ja.po +++ b/base_search_fuzzy/i18n/ja.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ko.po b/base_search_fuzzy/i18n/ko.po index 7816808d0..e36301c84 100644 --- a/base_search_fuzzy/i18n/ko.po +++ b/base_search_fuzzy/i18n/ko.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/lt.po b/base_search_fuzzy/i18n/lt.po index 3d716d8aa..9ca907f40 100644 --- a/base_search_fuzzy/i18n/lt.po +++ b/base_search_fuzzy/i18n/lt.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/lt_LT.po b/base_search_fuzzy/i18n/lt_LT.po index 15ade1cf8..002570db5 100644 --- a/base_search_fuzzy/i18n/lt_LT.po +++ b/base_search_fuzzy/i18n/lt_LT.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/lv.po b/base_search_fuzzy/i18n/lv.po index d72bb579a..c128584fc 100644 --- a/base_search_fuzzy/i18n/lv.po +++ b/base_search_fuzzy/i18n/lv.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/mk.po b/base_search_fuzzy/i18n/mk.po index b68053aa3..456140c3c 100644 --- a/base_search_fuzzy/i18n/mk.po +++ b/base_search_fuzzy/i18n/mk.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/mn.po b/base_search_fuzzy/i18n/mn.po index c6e09b459..ea5d54630 100644 --- a/base_search_fuzzy/i18n/mn.po +++ b/base_search_fuzzy/i18n/mn.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/nb.po b/base_search_fuzzy/i18n/nb.po index 7697421db..5dff7475b 100644 --- a/base_search_fuzzy/i18n/nb.po +++ b/base_search_fuzzy/i18n/nb.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/nb_NO.po b/base_search_fuzzy/i18n/nb_NO.po index 7bbe79e9e..aa0da0707 100644 --- a/base_search_fuzzy/i18n/nb_NO.po +++ b/base_search_fuzzy/i18n/nb_NO.po @@ -7,7 +7,7 @@ # Imre Kristoffer Eilertsen , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/nl.po b/base_search_fuzzy/i18n/nl.po index 8a9b0756e..a19306105 100644 --- a/base_search_fuzzy/i18n/nl.po +++ b/base_search_fuzzy/i18n/nl.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/nl_BE.po b/base_search_fuzzy/i18n/nl_BE.po index ad24888c5..d6e951529 100644 --- a/base_search_fuzzy/i18n/nl_BE.po +++ b/base_search_fuzzy/i18n/nl_BE.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/pl.po b/base_search_fuzzy/i18n/pl.po index 18f53fbe9..e19f6bd6e 100644 --- a/base_search_fuzzy/i18n/pl.po +++ b/base_search_fuzzy/i18n/pl.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/pt.po b/base_search_fuzzy/i18n/pt.po index 2ee1e575b..0d59e3d48 100644 --- a/base_search_fuzzy/i18n/pt.po +++ b/base_search_fuzzy/i18n/pt.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/pt_BR.po b/base_search_fuzzy/i18n/pt_BR.po index 7259450bc..62cfe2168 100644 --- a/base_search_fuzzy/i18n/pt_BR.po +++ b/base_search_fuzzy/i18n/pt_BR.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/pt_PT.po b/base_search_fuzzy/i18n/pt_PT.po index f55aa7296..3a5b49286 100644 --- a/base_search_fuzzy/i18n/pt_PT.po +++ b/base_search_fuzzy/i18n/pt_PT.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ro.po b/base_search_fuzzy/i18n/ro.po index 34154a347..44823dfac 100644 --- a/base_search_fuzzy/i18n/ro.po +++ b/base_search_fuzzy/i18n/ro.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/ru.po b/base_search_fuzzy/i18n/ru.po index fabc72f14..063fc7c21 100644 --- a/base_search_fuzzy/i18n/ru.po +++ b/base_search_fuzzy/i18n/ru.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/sk.po b/base_search_fuzzy/i18n/sk.po index 62826a29e..45765ee17 100644 --- a/base_search_fuzzy/i18n/sk.po +++ b/base_search_fuzzy/i18n/sk.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/sl.po b/base_search_fuzzy/i18n/sl.po index 89ff31b3d..540aac5a5 100644 --- a/base_search_fuzzy/i18n/sl.po +++ b/base_search_fuzzy/i18n/sl.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/sr.po b/base_search_fuzzy/i18n/sr.po index 30d63da2a..447be3213 100644 --- a/base_search_fuzzy/i18n/sr.po +++ b/base_search_fuzzy/i18n/sr.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/sr@latin.po b/base_search_fuzzy/i18n/sr@latin.po index 17795088a..bad26ee29 100644 --- a/base_search_fuzzy/i18n/sr@latin.po +++ b/base_search_fuzzy/i18n/sr@latin.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/sv.po b/base_search_fuzzy/i18n/sv.po index 568657cc3..9811ebf03 100644 --- a/base_search_fuzzy/i18n/sv.po +++ b/base_search_fuzzy/i18n/sv.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/th.po b/base_search_fuzzy/i18n/th.po index beec1f293..43dbb8279 100644 --- a/base_search_fuzzy/i18n/th.po +++ b/base_search_fuzzy/i18n/th.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/tr.po b/base_search_fuzzy/i18n/tr.po index 112ddd0b4..a3a289d71 100644 --- a/base_search_fuzzy/i18n/tr.po +++ b/base_search_fuzzy/i18n/tr.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/tr_TR.po b/base_search_fuzzy/i18n/tr_TR.po index 108f2b1f7..e39c4642c 100644 --- a/base_search_fuzzy/i18n/tr_TR.po +++ b/base_search_fuzzy/i18n/tr_TR.po @@ -7,7 +7,7 @@ # Ozge Altinisik , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/uk.po b/base_search_fuzzy/i18n/uk.po index 78121f790..7cf393650 100644 --- a/base_search_fuzzy/i18n/uk.po +++ b/base_search_fuzzy/i18n/uk.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/vi.po b/base_search_fuzzy/i18n/vi.po index d5fa51b63..52e073458 100644 --- a/base_search_fuzzy/i18n/vi.po +++ b/base_search_fuzzy/i18n/vi.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/vi_VN.po b/base_search_fuzzy/i18n/vi_VN.po index 206d2acf9..64ce2fe7a 100644 --- a/base_search_fuzzy/i18n/vi_VN.po +++ b/base_search_fuzzy/i18n/vi_VN.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/zh_CN.po b/base_search_fuzzy/i18n/zh_CN.po index 6f69936f8..c05d9fc4e 100644 --- a/base_search_fuzzy/i18n/zh_CN.po +++ b/base_search_fuzzy/i18n/zh_CN.po @@ -7,7 +7,7 @@ # Jeffery CHEN , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/i18n/zh_TW.po b/base_search_fuzzy/i18n/zh_TW.po index 012a06ee6..f4f54e523 100644 --- a/base_search_fuzzy/i18n/zh_TW.po +++ b/base_search_fuzzy/i18n/zh_TW.po @@ -6,7 +6,7 @@ # OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-14 04:21+0000\n" "PO-Revision-Date: 2017-01-14 04:21+0000\n" diff --git a/base_search_fuzzy/models/ir_model.py b/base_search_fuzzy/models/ir_model.py index a56cb32ea..19091d19f 100644 --- a/base_search_fuzzy/models/ir_model.py +++ b/base_search_fuzzy/models/ir_model.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # © 2016 Eficent Business and IT Consulting Services S.L. # © 2016 Serpent Consulting Services Pvt. Ltd. +# Copyright 2017 LasLabs Inc. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging -from openerp import models, api -from openerp.osv import expression +from odoo import _, api, models +from odoo.osv import expression _logger = logging.getLogger(__name__) @@ -19,23 +20,28 @@ def patch_leaf_trgm(method): table_alias = '"%s"' % (eleaf.generate_alias()) if operator == '%': + sql_operator = '%%' params = [] - if left in model._columns: - formats = model._columns[left]._symbol_set[0] + if left in model._fields: column = '%s.%s' % (table_alias, expression._quote(left)) - query = '(%s %s %s)' % (column, sql_operator, formats) - elif left in expression.MAGIC_COLUMNS: + query = '(%s %s %s)' % ( + column, + sql_operator, + model._fields[left].column_format, + ) + elif left in models.MAGIC_COLUMNS: query = "(%s.\"%s\" %s %%s)" % ( table_alias, left, sql_operator) params = right else: # Must not happen - raise ValueError( - "Invalid field %r in domain term %r" % (left, leaf)) + raise ValueError(_( + "Invalid field %r in domain term %r" % (left, leaf) + )) - if left in model._columns: - params = model._columns[left]._symbol_set[1](right) + if left in model._fields: + params = str(right) if isinstance(params, basestring): params = [params] @@ -67,7 +73,8 @@ class IrModel(models.Model): _inherit = 'ir.model' - def _register_hook(self, cr, ids=None): + @api.model_cr + def _register_hook(self): # We have to prevent wrapping the function twice to avoid recursion # errors if not hasattr(expression.expression._expression__leaf_to_sql, @@ -82,4 +89,4 @@ class IrModel(models.Model): '__decorated__'): models.BaseModel._generate_order_by = patch_generate_order_by( models.BaseModel._generate_order_by) - return super(IrModel, self)._register_hook(cr) + return super(IrModel, self)._register_hook() diff --git a/base_search_fuzzy/models/trgm_index.py b/base_search_fuzzy/models/trgm_index.py index 4c99c1656..56731d1ac 100644 --- a/base_search_fuzzy/models/trgm_index.py +++ b/base_search_fuzzy/models/trgm_index.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- # © 2016 Eficent Business and IT Consulting Services S.L. # © 2016 Serpent Consulting Services Pvt. Ltd. +# Copyright 2017 LasLabs Inc. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging -from openerp import SUPERUSER_ID, _, api, exceptions, fields, models +from odoo import _, api, exceptions, fields, models from psycopg2.extensions import AsIs @@ -46,7 +47,7 @@ class TrgmIndex(models.Model): 'GiST for often-updated data."' ) - @api.model + @api.model_cr def _trgm_extension_exists(self): self.env.cr.execute(""" SELECT name, installed_version @@ -64,13 +65,13 @@ class TrgmIndex(models.Model): return 'installed' - @api.model + @api.model_cr def _is_postgres_superuser(self): self.env.cr.execute("SHOW is_superuser;") superuser = self.env.cr.fetchone() return superuser is not None and superuser[0] == 'on' or False - @api.model + @api.model_cr def _install_trgm_extension(self): extension = self._trgm_extension_exists() if extension == 'missing': @@ -88,14 +89,15 @@ class TrgmIndex(models.Model): return True return False - def _auto_init(self, cr, context=None): - res = super(TrgmIndex, self)._auto_init(cr, context) - if self._install_trgm_extension(cr, SUPERUSER_ID, context=context): + @api.model_cr_context + def _auto_init(self): + res = super(TrgmIndex, self)._auto_init() + if self._install_trgm_extension(): _logger.info('The pg_trgm is loaded in the database and the ' 'fuzzy search can be used.') return res - @api.model + @api.model_cr def get_not_used_index(self, index_name, table_name, inc=1): if inc > 1: new_index_name = index_name + str(inc) diff --git a/base_search_fuzzy/tests/test_query_generation.py b/base_search_fuzzy/tests/test_query_generation.py index a38534828..06b809cf2 100644 --- a/base_search_fuzzy/tests/test_query_generation.py +++ b/base_search_fuzzy/tests/test_query_generation.py @@ -2,8 +2,8 @@ # © 2016 Eficent Business and IT Consulting Services S.L. # © 2016 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.osv import expression -from openerp.tests.common import TransactionCase, at_install, post_install +from odoo.osv import expression +from odoo.tests.common import TransactionCase, at_install, post_install @at_install(False) diff --git a/base_search_fuzzy/views/trgm_index.xml b/base_search_fuzzy/views/trgm_index.xml index 36fb6efcb..87fa8f297 100644 --- a/base_search_fuzzy/views/trgm_index.xml +++ b/base_search_fuzzy/views/trgm_index.xml @@ -1,5 +1,5 @@ - + @@ -44,4 +44,4 @@ groups="base.group_no_one"/> - +