From 0468c8d2b0cac9e4f8fe6adf98f011b2d3448a80 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Wed, 1 Jun 2016 18:15:38 +0100 Subject: [PATCH 01/13] base_name_search_improved: friendly and powerful name search --- base_name_search_improved/README.rst | 115 ++++++++++++++++++ base_name_search_improved/__init__.py | 2 + base_name_search_improved/__openerp__.py | 19 +++ base_name_search_improved/images/image0.png | Bin 0 -> 16688 bytes base_name_search_improved/images/image1.png | Bin 0 -> 10897 bytes base_name_search_improved/images/image2.png | Bin 0 -> 15567 bytes base_name_search_improved/models/__init__.py | 2 + base_name_search_improved/models/ir_model.py | 61 ++++++++++ .../static/description/icon.png | Bin 0 -> 9455 bytes base_name_search_improved/tests/__init__.py | 5 + .../tests/test_name_search.py | 44 +++++++ base_name_search_improved/views/ir_model.xml | 25 ++++ 12 files changed, 273 insertions(+) create mode 100644 base_name_search_improved/README.rst create mode 100644 base_name_search_improved/__init__.py create mode 100644 base_name_search_improved/__openerp__.py create mode 100644 base_name_search_improved/images/image0.png create mode 100644 base_name_search_improved/images/image1.png create mode 100644 base_name_search_improved/images/image2.png create mode 100644 base_name_search_improved/models/__init__.py create mode 100644 base_name_search_improved/models/ir_model.py create mode 100644 base_name_search_improved/static/description/icon.png create mode 100644 base_name_search_improved/tests/__init__.py create mode 100644 base_name_search_improved/tests/test_name_search.py create mode 100644 base_name_search_improved/views/ir_model.xml diff --git a/base_name_search_improved/README.rst b/base_name_search_improved/README.rst new file mode 100644 index 000000000..46d91e16d --- /dev/null +++ b/base_name_search_improved/README.rst @@ -0,0 +1,115 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +==================== +Improved Name Search +==================== + +Extends the name search feature to use fuzzy matching methods, and +allowing to search in additional related record attributes. + +The name search is the lookup feature to select a related record. +For example, selecting a Customer on a new Sales order. + +For example, typing "john brown" doesn't match "John M. Brown". +The fuzzy search looks up for record containing all the words, +so "John M. Brown" would be a match. +It also tolerates words in a different order, so searching +for "brown john" would also works. + +.. image:: images/image0.png + +Additionally, an Administrator can configure other fields to also lookup into. +For example, Customers could be additionally searched by City or Phone number. + +.. image:: images/image2.png + +How it works: + +Regular name search is performed, and the additional search logic is only +triggered if no results are found. This way, no significan overhead is added +on searches that would normally yield results. + +But if no results are found, then sdditional search methods are tried until +some results are found. The sepcific methods used are: + +- Try regular search on each of the additional fields +- Try ordered word search on each of the search fields +- Try unordered word search on each of the search fields + + +Installation +============ + +No specific requirements. + + +Configuration +============= + +The fuzzy search is automatically enabled on all Models. +Note that this only affects typing in related fields. +The regular ``search()``, used in the top right search box, is not affected. + +Additional search fields can be configured at Settings > Technical > Database > Models, +using the "Name Search Fields" field. + +.. image:: images/image1.png + + +Usage +===== + +Just type into any related field, such as Customer on a Sale Order. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/149/8.0 + +.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt +.. branch is "8.0" for example + +Known issues / Roadmap +====================== + +* The list of additional fields to search could benefit from caching, for efficiency. +* This feature could be implemented for regular ``search`` on the ``name`` field. + + +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. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Daniel Reis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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 https://odoo-community.org. diff --git a/base_name_search_improved/__init__.py b/base_name_search_improved/__init__.py new file mode 100644 index 000000000..a0fdc10fe --- /dev/null +++ b/base_name_search_improved/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import models diff --git a/base_name_search_improved/__openerp__.py b/base_name_search_improved/__openerp__.py new file mode 100644 index 000000000..11df47076 --- /dev/null +++ b/base_name_search_improved/__openerp__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# © 2016 Daniel Reis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + 'name': 'Improved Name Search', + 'summary': 'Friendlier search when typing in relation fields', + 'version': '8.0.1.0.0', + 'category': 'Uncategorized', + 'website': 'https://odoo-community.org/', + 'author': 'Daniel Reis, Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'data': [ + 'views/ir_model.xml', + ], + 'installable': True, + 'depends': [ + 'base', + ], +} diff --git a/base_name_search_improved/images/image0.png b/base_name_search_improved/images/image0.png new file mode 100644 index 0000000000000000000000000000000000000000..f6bbf6459feeb20c25174964c62c853c1f9f6c59 GIT binary patch literal 16688 zcmaib1z1#F7cMh&mw=QYC|yc-BMs7$f^SQJ=DNJzK}@-iAoNXQT*BoH|U82Cg1 zHl7ar19H`PB!!g!i)tBogJLDAB8i0bJqr8O6cu=n`CR^qD-sf36XFl3%_-X)_>jm= zR?kh-$(h_4rRAmYRbA8E9w+=-gBPa z&fSe6Gf(4?-}}QZBRKN9mg-kGDI}0 zGiR%CU0q%AjStJqA5uT8>SvyQt<0%BoE$7EFdF1`9m@Z$7aaomq&@ACY7I*W91Ms_MI9{hP zh*?Y*N}Wc`a^n46^^@?fRkOCDVG*tuQm!q-lhNHrMjIUyDc=jcoU z^~L&M2W+_7pOaP@zI}FBByb>YI(b|8Q@}8{^vAIPeC=6F=b>$8+3CX9MqZ~DdZ+QT z^yoKMI!~FomJUy`@wJ8dc8hQcn68C>mwq!W!u{fxvIHw-c1DklPvH^W+RU2NI`-ST zM1k|VNKWb-qndr+cJ-TCg*|f>*%fsa-<5Ec+Ld;d-Ia6wG0aFJ&l~89RfkH0*QT93 z$ZZ%JaO8q*qH*{9W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@&I$?_~BmyG@j;+f=)*ft^GT*6!}0WCwO6?Y zw@I!E`QI}>MeL9VmLQc|4@9si6wD{NlTinFfzGCxI2S`A(RJB*-QM=>Ce)+aOE~+n zsT-5^H12cQcNu+W1*X{*_r53jo47n2!T)0k(BzINMJVPZQ1nDio*$ehwYk8Zo%f@< zCzlH=kXHXUMo{ha+k${@tTaF+xsvfNnK@5qDTN%|)hehvCD0Qzt+EO7yxIv literal 0 HcmV?d00001 diff --git a/base_name_search_improved/images/image1.png b/base_name_search_improved/images/image1.png new file mode 100644 index 0000000000000000000000000000000000000000..855dbb1a20d97d980d69126957245452b3165033 GIT binary patch literal 10897 zcmb7q2Rzh&{6A4fgHQ;GvLc%^LRRJ>TUL@4PPogaghG@(E}OGuW!xE+JjRCxO4o9w{5S5)hngIQk-NamslB z{F4f*Xb9DDvWB`@xL6S=xma02Ty348W_qN+E7wU?6l8VX&6bkvUoo|L#D7cqBBT82 z%GVZe(liRf7v5(auAI0SN=$gdmNK}DWQ?+tK*0aK7@7b3RrV=%avC+e%D2>iUNw2nBShSmi%|l;ZTiARUmT|0?|YpW zIOt#JrV#jftxkm$4#ik52E;gz+z3U|>o|hKxHWU*toS10e_rk}_ZNKycv1IX78^76Bey+I_NAtlADT_tKsnq zzBF0qvqyWG>_za;E1NOSl(%_sU%0}TQ+9+U&;&Farx2s^_=?vFGIClL*`0KeI@sc1 zw-gm6_0LQ52Jarc*=kaU;-!YIX|KeCmjgmckY;u-Lu3=nm!7TYt z#Eri$ofjQl)|RlFn^G{D&G$KQDg|tG>X#^g47#0YLdafGDB17@?KPT%6M@^Ve{@50 zf6;DsSRxr#Z;daPrk^IqM(Yls#R6XD$S>N>c%KciJG>-N=dq5{`R6Ev^M(YhCMS8} zslWMC^@<@qkm8jN$WCM->Gi}&Cdqu;_7|{pJHD=ilL4mP)PD{Xwp?_g${A8@$&c39 zl>hKnQ?$^T9m(}v4`d0VmurqZkIl2LfE8u;V~m^nJHp})wpXVa{-aQ(P2ISB9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*ODze7_ODGsFZ@T{X=RYzq`R+N8Ro>2zn{KedfT9Er|2@~ z84p`qNJO48Bl{ag-~hV;x7E#IqaI=mm2g*or1O0Tl&(*%7N%Z)I*$B;X68(SoNp?g zN4u={i|zA&0}YA+KXLw13jY6G|7TeJszFETQ}#!U0%`DgAPNLl5XnDP1qcbspD_xQ zspFtEB>%t0e|y>cmtbselGWwS5Tnk33oQR+ z15+4=!HgFMFY_TYv&TjksIv};*dy5ziY5M&5PJZ0cC)tEaBYLW($8{gQt5r-0uF0;ZmGW1Hlex1Oq^ZZBxNYt3R9 zzz~Gq*ldt|K(adzlIiLm=lKL_>KxXPF8k$gjGj?q;_^QWD|2!^_nx|C62l_itC;I@v z&o)P)!sckK0l<=9NqF_#$W!SfP;!)Q2m$BGpc+a3*=ijjgky^vKCs`N|C1pB_o0tz z-8vrW{gv~7K>WXQzV4s)@VB>yI)It~>#Z47xixF;+$`;!mH(3>5o_Ea-)X(9SAUnK z9EIx(adIpb|33bKRmk7cIzV6kuM=!wP*&nOJKFfq*2q5whQmLrJ}`e7Nxv^=G%c*3$@Z9Q(NtVUd)YQ>@h*_%_0rP3#OV=F zRUddYWB#BFG*Tsv5lID^JYEj`%pDj2g)YkfoTU8lwG*VQ0Y9ra@DVN`(;m+aemDjp j@zFMG6oNQhFgRpho0bp8Nk2*f?h&XcYA6)R-Shunqvi(W literal 0 HcmV?d00001 diff --git a/base_name_search_improved/images/image2.png b/base_name_search_improved/images/image2.png new file mode 100644 index 0000000000000000000000000000000000000000..ef5ecac43885db542b4ad4ffe72a65d621f5bc34 GIT binary patch literal 15567 zcma*O1yt1A7d8wcDj=dD5`w5SNC_w)LrcTZ9U?JwNDnCph;)|>l0ze*NFzwc5Q8*G z!%z}K$M+l1d+-1K*1Og_Yq?yUIkC?^`#gK^XP*gHQj{XZr^Ls?!XlKBmQcaM!tut! z!X~?M1!(c&z&-%}!**1W62mI)rCI_0xC#+f5XHhOjUYHN!Ug`uvzOL(#KOAOjQNM% zW|w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fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/base_name_search_improved/tests/__init__.py b/base_name_search_improved/tests/__init__.py new file mode 100644 index 000000000..4ea57064e --- /dev/null +++ b/base_name_search_improved/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Daniel Reis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_name_search diff --git a/base_name_search_improved/tests/test_name_search.py b/base_name_search_improved/tests/test_name_search.py new file mode 100644 index 000000000..4a016affb --- /dev/null +++ b/base_name_search_improved/tests/test_name_search.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# © 2016 Daniel Reis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp.tests.common import TransactionCase, at_install, post_install + + +@at_install(False) +@post_install(True) +class NameSearchCase(TransactionCase): + + def setUp(self): + super(NameSearchCase, self).setUp() + phone_field = self.env.ref('base.field_res_partner_phone') + model_partner = self.env.ref('base.model_res_partner') + model_partner.name_search_ids = phone_field + self.Partner = self.env['res.partner'] + self.partner1 = self.Partner.create( + {'name': 'Johann Gambolputty of Ulm', + 'phone': '+351 555 777'}) + self.partner2 = self.Partner.create( + {'name': 'Luigi Verconti', + 'phone': '+351 777 555'}) + + def test_NameSearchSearchWithSpaces(self): + """Name Search Match full string, honoring spaces""" + res = self.Partner.name_search('777 555') + self.assertEqual(res[0][0], self.partner2.id) + + def test_NameSearchOrdered(self): + """Name Search Match by words, honoring order""" + res = self.Partner.name_search('johann ulm') + # res is a list of tuples (id, name) + self.assertEqual(res[0][0], self.partner1.id) + + def test_NameSearchUnordered(self): + """Name Search Math by unordered words""" + res = self.Partner.name_search('ulm gambol') + self.assertEqual(res[0][0], self.partner1.id) + + def test_NameSearchMustMatchAllWords(self): + """Name Search Must Match All Words""" + res = self.Partner.name_search('ulm 555 777') + self.assertFalse(res) diff --git a/base_name_search_improved/views/ir_model.xml b/base_name_search_improved/views/ir_model.xml new file mode 100644 index 000000000..fbc3ff7b7 --- /dev/null +++ b/base_name_search_improved/views/ir_model.xml @@ -0,0 +1,25 @@ + + + + + + + + Add Name Searchable to Models + ir.model + + + + + + + + + + + + From 82771865cefc14d89beaf3266f996af1f9ba46da Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 9 Jun 2016 23:57:08 +0100 Subject: [PATCH 02/13] Return all results from the several methods, ordered by best match --- base_name_search_improved/README.rst | 24 +++++---- base_name_search_improved/models/ir_model.py | 53 ++++++++++++------- .../tests/test_name_search.py | 42 +++++++-------- 3 files changed, 70 insertions(+), 49 deletions(-) diff --git a/base_name_search_improved/README.rst b/base_name_search_improved/README.rst index 46d91e16d..07998cbb2 100644 --- a/base_name_search_improved/README.rst +++ b/base_name_search_improved/README.rst @@ -6,17 +6,18 @@ Improved Name Search ==================== -Extends the name search feature to use fuzzy matching methods, and -allowing to search in additional related record attributes. +Extends the name search feature to use additional, more relaxed +matching methods, and to allow searching into configurable additional +record fields. The name search is the lookup feature to select a related record. For example, selecting a Customer on a new Sales order. For example, typing "john brown" doesn't match "John M. Brown". -The fuzzy search looks up for record containing all the words, +The relaxed search also looks up for records containing all the words, so "John M. Brown" would be a match. It also tolerates words in a different order, so searching -for "brown john" would also works. +for "brown john" also works. .. image:: images/image0.png @@ -28,16 +29,19 @@ For example, Customers could be additionally searched by City or Phone number. How it works: Regular name search is performed, and the additional search logic is only -triggered if no results are found. This way, no significan overhead is added -on searches that would normally yield results. +triggered if not enough results are found. +This way, no overhead is added on searches that would normally yield results. -But if no results are found, then sdditional search methods are tried until -some results are found. The sepcific methods used are: +But if not enough results are found, then additional search methods are tried. +The specific methods used are: - Try regular search on each of the additional fields - Try ordered word search on each of the search fields - Try unordered word search on each of the search fields +All results found are presented in that order, +hopefully presenting them in order of relevance. + Installation ============ @@ -74,8 +78,10 @@ Just type into any related field, such as Customer on a Sale Order. Known issues / Roadmap ====================== +* Also use fuzzy search, such as the Levenshtein distance: + https://www.postgresql.org/docs/9.5/static/fuzzystrmatch.html * The list of additional fields to search could benefit from caching, for efficiency. -* This feature could be implemented for regular ``search`` on the ``name`` field. +* This feature could also be implemented for regular ``search`` on the ``name`` field. Bug Tracker diff --git a/base_name_search_improved/models/ir_model.py b/base_name_search_improved/models/ir_model.py index 14a8ba9d2..66b00b3ea 100644 --- a/base_name_search_improved/models/ir_model.py +++ b/base_name_search_improved/models/ir_model.py @@ -4,6 +4,29 @@ from openerp import models, fields, api from openerp import SUPERUSER_ID +from openerp import tools + + +# Extended name search is only used on some operators +ALLOWED_OPS = set(['ilike', 'like']) + + +@tools.ormcache(skiparg=0) +def _get_rec_names(self): + model = self.env['ir.model'].search( + [('model', '=', str(self._model))]) + rec_name = [self._rec_name] or [] + other_names = model.name_search_ids.mapped('name') + return rec_name + other_names + + +def _extend_name_results(self, domain, results, limit): + result_count = len(results) + if result_count < limit: + domain += [('id', 'not in', [x[0] for x in results])] + recs = self.search(domain, limit=limit - result_count) + results.extend(recs.name_get()) + return results class ModelExtended(models.Model): @@ -20,35 +43,27 @@ class ModelExtended(models.Model): @api.model def name_search(self, name='', args=None, operator='ilike', limit=100): - # Regular name search + # Perform standard name search res = name_search.origin( self, name=name, args=args, operator=operator, limit=limit) - - allowed_ops = ['ilike', 'like', '='] - if not res and operator in allowed_ops and self._rec_name: + enabled = self.env.context.get('name_search_extended', True) + # Perform extended name search + if enabled and operator in ALLOWED_OPS: # Support a list of fields to search on - model = self.env['ir.model'].search( - [('model', '=', str(self._model))]) - other_names = model.name_search_ids.mapped('name') + all_names = _get_rec_names(self) # Try regular search on each additional search field - for rec_name in other_names: + for rec_name in all_names[1:]: domain = [(rec_name, operator, name)] - recs = self.search(domain, limit=limit) - if recs: - return recs.name_get() + res = _extend_name_results(self, domain, res, limit) # Try ordered word search on each of the search fields - for rec_name in [self._rec_name] + other_names: + for rec_name in all_names: domain = [(rec_name, operator, name.replace(' ', '%'))] - recs = self.search(domain, limit=limit) - if recs: - return recs.name_get() + res = _extend_name_results(self, domain, res, limit) # Try unordered word search on each of the search fields - for rec_name in [self._rec_name] + other_names: + for rec_name in all_names: domain = [(rec_name, operator, x) for x in name.split() if x] - recs = self.search(domain, limit=limit) - if recs: - return recs.name_get() + res = _extend_name_results(self, domain, res, limit) return res return name_search diff --git a/base_name_search_improved/tests/test_name_search.py b/base_name_search_improved/tests/test_name_search.py index 4a016affb..408db3eb5 100644 --- a/base_name_search_improved/tests/test_name_search.py +++ b/base_name_search_improved/tests/test_name_search.py @@ -16,29 +16,29 @@ class NameSearchCase(TransactionCase): model_partner.name_search_ids = phone_field self.Partner = self.env['res.partner'] self.partner1 = self.Partner.create( - {'name': 'Johann Gambolputty of Ulm', - 'phone': '+351 555 777'}) - self.partner2 = self.Partner.create( {'name': 'Luigi Verconti', - 'phone': '+351 777 555'}) - - def test_NameSearchSearchWithSpaces(self): - """Name Search Match full string, honoring spaces""" - res = self.Partner.name_search('777 555') - self.assertEqual(res[0][0], self.partner2.id) - - def test_NameSearchOrdered(self): - """Name Search Match by words, honoring order""" - res = self.Partner.name_search('johann ulm') - # res is a list of tuples (id, name) - self.assertEqual(res[0][0], self.partner1.id) - - def test_NameSearchUnordered(self): - """Name Search Math by unordered words""" - res = self.Partner.name_search('ulm gambol') - self.assertEqual(res[0][0], self.partner1.id) + 'phone': '+351 555 777 333'}) + self.partner2 = self.Partner.create( + {'name': 'Ken Shabby', + 'phone': '+351 555 333 777'}) + self.partner3 = self.Partner.create( + {'name': 'Johann Gambolputty of Ulm', + 'phone': '+351 777 333 555'}) + + def test_RelevanceOrderedResults(self): + """Return results ordered by relevance""" + res = self.Partner.name_search('555 777') + self.assertEqual( + res[0][0], self.partner1.id, + 'Match full string honoring spaces') + self.assertEqual( + res[1][0], self.partner2.id, + 'Match words honoring order of appearance') + self.assertEqual( + res[2][0], self.partner3.id, + 'Match all words, regardless of order of appearance') def test_NameSearchMustMatchAllWords(self): - """Name Search Must Match All Words""" + """Must Match All Words""" res = self.Partner.name_search('ulm 555 777') self.assertFalse(res) From 6676333ae38efc00f4f0bc592668b7fb291592a6 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Wed, 6 Jul 2016 13:56:36 +0100 Subject: [PATCH 03/13] Test if additional domain is honored --- base_name_search_improved/tests/test_name_search.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/base_name_search_improved/tests/test_name_search.py b/base_name_search_improved/tests/test_name_search.py index 408db3eb5..72dd9933c 100644 --- a/base_name_search_improved/tests/test_name_search.py +++ b/base_name_search_improved/tests/test_name_search.py @@ -17,12 +17,15 @@ class NameSearchCase(TransactionCase): self.Partner = self.env['res.partner'] self.partner1 = self.Partner.create( {'name': 'Luigi Verconti', + 'customer': True, 'phone': '+351 555 777 333'}) self.partner2 = self.Partner.create( {'name': 'Ken Shabby', + 'customer': True, 'phone': '+351 555 333 777'}) self.partner3 = self.Partner.create( {'name': 'Johann Gambolputty of Ulm', + 'supplier': True, 'phone': '+351 777 333 555'}) def test_RelevanceOrderedResults(self): @@ -42,3 +45,10 @@ class NameSearchCase(TransactionCase): """Must Match All Words""" res = self.Partner.name_search('ulm 555 777') self.assertFalse(res) + + def test_MustHonorDomain(self): + """Must also honor a provided Domain""" + res = self.Partner.name_search('+351', args=[('supplier', '=', True)]) + gambulputty = self.partner3.id + self.assertEqual(len(res), 1) + self.assertEqual(res[0][0], gambulputty) From b19245f4c7b26a378ffd73a8524604df6e36c4c1 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Wed, 6 Jul 2016 14:50:37 +0100 Subject: [PATCH 04/13] Honor name_search additional domain --- base_name_search_improved/models/ir_model.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/base_name_search_improved/models/ir_model.py b/base_name_search_improved/models/ir_model.py index 66b00b3ea..2b0223a1a 100644 --- a/base_name_search_improved/models/ir_model.py +++ b/base_name_search_improved/models/ir_model.py @@ -13,6 +13,7 @@ ALLOWED_OPS = set(['ilike', 'like']) @tools.ormcache(skiparg=0) def _get_rec_names(self): + "List of fields to search into" model = self.env['ir.model'].search( [('model', '=', str(self._model))]) rec_name = [self._rec_name] or [] @@ -51,19 +52,23 @@ class ModelExtended(models.Model): if enabled and operator in ALLOWED_OPS: # Support a list of fields to search on all_names = _get_rec_names(self) + base_domain = args or [] # Try regular search on each additional search field for rec_name in all_names[1:]: domain = [(rec_name, operator, name)] - res = _extend_name_results(self, domain, res, limit) + res = _extend_name_results( + self, base_domain + domain, res, limit) # Try ordered word search on each of the search fields for rec_name in all_names: domain = [(rec_name, operator, name.replace(' ', '%'))] - res = _extend_name_results(self, domain, res, limit) + res = _extend_name_results( + self, base_domain + domain, res, limit) # Try unordered word search on each of the search fields for rec_name in all_names: domain = [(rec_name, operator, x) for x in name.split() if x] - res = _extend_name_results(self, domain, res, limit) + res = _extend_name_results( + self, base_domain + domain, res, limit) return res return name_search From 52e2046654b2aced2683964d9e0020e8e0c28589 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Wed, 6 Jul 2016 23:54:01 +0100 Subject: [PATCH 05/13] Do not search on empty string. Fixes #467 --- base_name_search_improved/models/ir_model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base_name_search_improved/models/ir_model.py b/base_name_search_improved/models/ir_model.py index 2b0223a1a..cea0dd3c9 100644 --- a/base_name_search_improved/models/ir_model.py +++ b/base_name_search_improved/models/ir_model.py @@ -49,7 +49,9 @@ class ModelExtended(models.Model): self, name=name, args=args, operator=operator, limit=limit) enabled = self.env.context.get('name_search_extended', True) # Perform extended name search - if enabled and operator in ALLOWED_OPS: + # Note: Empty name causes error on + # Customer->More->Portal Access Management + if name and enabled and operator in ALLOWED_OPS: # Support a list of fields to search on all_names = _get_rec_names(self) base_domain = args or [] From e7643ccb8897435b30931fe7532b20d5a1a9aeb5 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Thu, 14 Jul 2016 15:05:05 +0200 Subject: [PATCH 06/13] Bump version --- base_name_search_improved/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_name_search_improved/__openerp__.py b/base_name_search_improved/__openerp__.py index 11df47076..165d93e11 100644 --- a/base_name_search_improved/__openerp__.py +++ b/base_name_search_improved/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'Improved Name Search', 'summary': 'Friendlier search when typing in relation fields', - 'version': '8.0.1.0.0', + 'version': '8.0.1.0.1', 'category': 'Uncategorized', 'website': 'https://odoo-community.org/', 'author': 'Daniel Reis, Odoo Community Association (OCA)', From bbee33d8e40c35d55895f05e505fe64a5bb34c7a Mon Sep 17 00:00:00 2001 From: Raph Date: Wed, 16 Nov 2016 15:01:50 +0100 Subject: [PATCH 07/13] Fix small typo in readme --- base_name_search_improved/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_name_search_improved/README.rst b/base_name_search_improved/README.rst index 07998cbb2..3991772cd 100644 --- a/base_name_search_improved/README.rst +++ b/base_name_search_improved/README.rst @@ -88,7 +88,7 @@ Bug Tracker =========== Bugs are tracked on `GitHub Issues -`_. In case of trouble, please +`_. 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. From 3d0d258a8eb0e27475b02d215c10360e51adb76e Mon Sep 17 00:00:00 2001 From: Nicolas Mac Rouillon Date: Thu, 24 Nov 2016 13:24:38 -0300 Subject: [PATCH 08/13] [9.0] MIG Improved Name Search --- base_name_search_improved/README.rst | 2 +- base_name_search_improved/__openerp__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base_name_search_improved/README.rst b/base_name_search_improved/README.rst index 3991772cd..7001cb485 100644 --- a/base_name_search_improved/README.rst +++ b/base_name_search_improved/README.rst @@ -70,7 +70,7 @@ Just type into any related field, such as Customer on a Sale Order. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/8.0 + :target: https://runbot.odoo-community.org/runbot/149/9.0 .. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt .. branch is "8.0" for example diff --git a/base_name_search_improved/__openerp__.py b/base_name_search_improved/__openerp__.py index 165d93e11..0b0b54e97 100644 --- a/base_name_search_improved/__openerp__.py +++ b/base_name_search_improved/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'Improved Name Search', 'summary': 'Friendlier search when typing in relation fields', - 'version': '8.0.1.0.1', + 'version': '9.0.1.0.0', 'category': 'Uncategorized', 'website': 'https://odoo-community.org/', 'author': 'Daniel Reis, Odoo Community Association (OCA)', @@ -12,8 +12,8 @@ 'data': [ 'views/ir_model.xml', ], - 'installable': True, 'depends': [ 'base', ], + 'installable': True, } From fff6fb7b022cb026e920fbb48130ad65f538867c Mon Sep 17 00:00:00 2001 From: Nicolas Mac Rouillon Date: Tue, 13 Dec 2016 15:54:53 -0300 Subject: [PATCH 09/13] # Please enter the commit message for your changes. Lines starting --- base_name_search_improved/views/ir_model.xml | 28 +++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/base_name_search_improved/views/ir_model.xml b/base_name_search_improved/views/ir_model.xml index fbc3ff7b7..ba90d10b0 100644 --- a/base_name_search_improved/views/ir_model.xml +++ b/base_name_search_improved/views/ir_model.xml @@ -3,23 +3,19 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - - - Add Name Searchable to Models - ir.model - - - - - + + Add Name Searchable to Models + ir.model + + + + + + - - - - From 5ae194e60675f5de422ebb3800770c79e6de0c26 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 3 Jul 2016 13:03:31 -0400 Subject: [PATCH 10/13] OCA Transbot updated translations from Transifex --- base_name_search_improved/i18n/ca.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/de.po | 30 +++++++++++++++++++++++++ base_name_search_improved/i18n/en.po | 26 +++++++++++++++++++++ base_name_search_improved/i18n/es.po | 30 +++++++++++++++++++++++++ base_name_search_improved/i18n/es_ES.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/eu.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/fi.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/fr.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/hr.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/hr_HR.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/it.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/nb_NO.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/nl.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/pt_BR.po | 30 +++++++++++++++++++++++++ base_name_search_improved/i18n/sl.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/tr.po | 30 +++++++++++++++++++++++++ base_name_search_improved/i18n/tr_TR.po | 29 ++++++++++++++++++++++++ base_name_search_improved/i18n/zh_CN.po | 29 ++++++++++++++++++++++++ 18 files changed, 523 insertions(+) create mode 100644 base_name_search_improved/i18n/ca.po create mode 100644 base_name_search_improved/i18n/de.po create mode 100644 base_name_search_improved/i18n/en.po create mode 100644 base_name_search_improved/i18n/es.po create mode 100644 base_name_search_improved/i18n/es_ES.po create mode 100644 base_name_search_improved/i18n/eu.po create mode 100644 base_name_search_improved/i18n/fi.po create mode 100644 base_name_search_improved/i18n/fr.po create mode 100644 base_name_search_improved/i18n/hr.po create mode 100644 base_name_search_improved/i18n/hr_HR.po create mode 100644 base_name_search_improved/i18n/it.po create mode 100644 base_name_search_improved/i18n/nb_NO.po create mode 100644 base_name_search_improved/i18n/nl.po create mode 100644 base_name_search_improved/i18n/pt_BR.po create mode 100644 base_name_search_improved/i18n/sl.po create mode 100644 base_name_search_improved/i18n/tr.po create mode 100644 base_name_search_improved/i18n/tr_TR.po create mode 100644 base_name_search_improved/i18n/zh_CN.po diff --git a/base_name_search_improved/i18n/ca.po b/base_name_search_improved/i18n/ca.po new file mode 100644 index 000000000..8d158044e --- /dev/null +++ b/base_name_search_improved/i18n/ca.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Marc Tormo i Bochaca , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-19 17:59+0000\n" +"PO-Revision-Date: 2017-04-19 17:59+0000\n" +"Last-Translator: Marc Tormo i Bochaca , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Models " + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Camps de cerca de nom " diff --git a/base_name_search_improved/i18n/de.po b/base_name_search_improved/i18n/de.po new file mode 100644 index 000000000..e9c8130d5 --- /dev/null +++ b/base_name_search_improved/i18n/de.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-04 07:38+0000\n" +"PO-Revision-Date: 2017-03-04 07:38+0000\n" +"Last-Translator: Rudolf Schnapka , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modelle" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Felder für Bezeichnungssuche" diff --git a/base_name_search_improved/i18n/en.po b/base_name_search_improved/i18n/en.po new file mode 100644 index 000000000..b79ff8fe4 --- /dev/null +++ b/base_name_search_improved/i18n/en.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-17 02:42+0000\n" +"PO-Revision-Date: 2016-06-17 02:42+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Models" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "Name Search Fields" diff --git a/base_name_search_improved/i18n/es.po b/base_name_search_improved/i18n/es.po new file mode 100644 index 000000000..c2166fbc1 --- /dev/null +++ b/base_name_search_improved/i18n/es.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +# Pedro M. Baeza , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 21:53+0000\n" +"PO-Revision-Date: 2016-12-23 21:53+0000\n" +"Last-Translator: Pedro M. Baeza , 2016\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modelos" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Campos de la búsqueda por nombre" diff --git a/base_name_search_improved/i18n/es_ES.po b/base_name_search_improved/i18n/es_ES.po new file mode 100644 index 000000000..e3129b019 --- /dev/null +++ b/base_name_search_improved/i18n/es_ES.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Fernando Lara , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-16 10:39+0000\n" +"PO-Revision-Date: 2017-02-16 10:39+0000\n" +"Last-Translator: Fernando Lara , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_ES\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modelos" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Campos de búsqueda de nombres" diff --git a/base_name_search_improved/i18n/eu.po b/base_name_search_improved/i18n/eu.po new file mode 100644 index 000000000..e0817e0c4 --- /dev/null +++ b/base_name_search_improved/i18n/eu.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Esther Martín Menéndez , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-22 00:48+0000\n" +"PO-Revision-Date: 2017-02-22 00:48+0000\n" +"Last-Translator: Esther Martín Menéndez , 2017\n" +"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Models" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/fi.po b/base_name_search_improved/i18n/fi.po new file mode 100644 index 000000000..d9844d63a --- /dev/null +++ b/base_name_search_improved/i18n/fi.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Jarmo Kortetjärvi , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-21 00:47+0000\n" +"PO-Revision-Date: 2016-09-21 00:47+0000\n" +"Last-Translator: Jarmo Kortetjärvi , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Mallit" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/fr.po b/base_name_search_improved/i18n/fr.po new file mode 100644 index 000000000..6b7406957 --- /dev/null +++ b/base_name_search_improved/i18n/fr.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-17 02:42+0000\n" +"PO-Revision-Date: 2016-06-17 02:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modèles" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/hr.po b/base_name_search_improved/i18n/hr.po new file mode 100644 index 000000000..92bb6cba0 --- /dev/null +++ b/base_name_search_improved/i18n/hr.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-21 00:47+0000\n" +"PO-Revision-Date: 2016-09-21 00:47+0000\n" +"Last-Translator: Bole , 2016\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modeli" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/hr_HR.po b/base_name_search_improved/i18n/hr_HR.po new file mode 100644 index 000000000..1bb91a808 --- /dev/null +++ b/base_name_search_improved/i18n/hr_HR.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-21 00:47+0000\n" +"PO-Revision-Date: 2016-09-21 00:47+0000\n" +"Last-Translator: Bole , 2016\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_HR\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modeli" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/it.po b/base_name_search_improved/i18n/it.po new file mode 100644 index 000000000..a237b042b --- /dev/null +++ b/base_name_search_improved/i18n/it.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Paolo Valier , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-17 02:42+0000\n" +"PO-Revision-Date: 2016-06-17 02:42+0000\n" +"Last-Translator: Paolo Valier , 2016\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modelli" + +#. module: base_name_search_improved +#: field:ir.model,name_search_ids:0 +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/nb_NO.po b/base_name_search_improved/i18n/nb_NO.po new file mode 100644 index 000000000..588f2dedb --- /dev/null +++ b/base_name_search_improved/i18n/nb_NO.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Imre Kristoffer Eilertsen , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 02:07+0000\n" +"PO-Revision-Date: 2016-12-17 02:07+0000\n" +"Last-Translator: Imre Kristoffer Eilertsen , 2016\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb_NO\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modeller" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/nl.po b/base_name_search_improved/i18n/nl.po new file mode 100644 index 000000000..787a51cdb --- /dev/null +++ b/base_name_search_improved/i18n/nl.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# lfreeke , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-19 17:59+0000\n" +"PO-Revision-Date: 2017-04-19 17:59+0000\n" +"Last-Translator: lfreeke , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modellen" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/pt_BR.po b/base_name_search_improved/i18n/pt_BR.po new file mode 100644 index 000000000..d84e5581f --- /dev/null +++ b/base_name_search_improved/i18n/pt_BR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +# Armando Vulcano Junior , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-28 11:05+0000\n" +"PO-Revision-Date: 2017-10-28 11:05+0000\n" +"Last-Translator: Armando Vulcano Junior , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modelos" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Campos de pesquisa de nome" diff --git a/base_name_search_improved/i18n/sl.po b/base_name_search_improved/i18n/sl.po new file mode 100644 index 000000000..790b4728f --- /dev/null +++ b/base_name_search_improved/i18n/sl.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 02:07+0000\n" +"PO-Revision-Date: 2016-12-17 02:07+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modeli" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "Polja iskanja po imenu" diff --git a/base_name_search_improved/i18n/tr.po b/base_name_search_improved/i18n/tr.po new file mode 100644 index 000000000..eedd0cc53 --- /dev/null +++ b/base_name_search_improved/i18n/tr.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# OCA Transbot , 2016 +# Ahmet Altinisik , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-29 03:39+0000\n" +"PO-Revision-Date: 2016-12-29 03:39+0000\n" +"Last-Translator: Ahmet Altinisik , 2016\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Modeller" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "İsim Arama Alanları" diff --git a/base_name_search_improved/i18n/tr_TR.po b/base_name_search_improved/i18n/tr_TR.po new file mode 100644 index 000000000..c5c0acd08 --- /dev/null +++ b/base_name_search_improved/i18n/tr_TR.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-07 04:03+0000\n" +"PO-Revision-Date: 2017-01-07 04:03+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "Tipler" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" diff --git a/base_name_search_improved/i18n/zh_CN.po b/base_name_search_improved/i18n/zh_CN.po new file mode 100644 index 000000000..54b53275c --- /dev/null +++ b/base_name_search_improved/i18n/zh_CN.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +# Translators: +# Jeffery Chen Fan , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 02:07+0000\n" +"PO-Revision-Date: 2016-12-17 02:07+0000\n" +"Last-Translator: Jeffery Chen Fan , 2016\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "模型" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" From c3ef86aab3f9391974d5843c3ccbb2b5bb02cbf4 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sun, 24 Jun 2018 08:55:58 +0000 Subject: [PATCH 11/13] [UPD] Update base_name_search_improved.pot --- .../i18n/base_name_search_improved.pot | 25 +++++++++++++++++++ base_name_search_improved/i18n/ca.po | 4 +-- base_name_search_improved/i18n/de.po | 4 +-- base_name_search_improved/i18n/es.po | 4 +-- base_name_search_improved/i18n/es_ES.po | 7 +++--- base_name_search_improved/i18n/eu.po | 4 +-- base_name_search_improved/i18n/fi.po | 6 ++--- base_name_search_improved/i18n/fr.po | 6 ++--- base_name_search_improved/i18n/hr.po | 9 ++++--- base_name_search_improved/i18n/hr_HR.po | 12 +++++---- base_name_search_improved/i18n/it.po | 6 ++--- base_name_search_improved/i18n/nb_NO.po | 7 +++--- base_name_search_improved/i18n/nl.po | 4 +-- base_name_search_improved/i18n/pt_BR.po | 7 +++--- base_name_search_improved/i18n/sl.po | 7 +++--- base_name_search_improved/i18n/tr.po | 4 +-- base_name_search_improved/i18n/tr_TR.po | 7 +++--- base_name_search_improved/i18n/zh_CN.po | 7 +++--- 18 files changed, 82 insertions(+), 48 deletions(-) create mode 100644 base_name_search_improved/i18n/base_name_search_improved.pot diff --git a/base_name_search_improved/i18n/base_name_search_improved.pot b/base_name_search_improved/i18n/base_name_search_improved.pot new file mode 100644 index 000000000..c7307f136 --- /dev/null +++ b/base_name_search_improved/i18n/base_name_search_improved.pot @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_name_search_improved +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base_name_search_improved +#: model:ir.model,name:base_name_search_improved.model_ir_model +msgid "Models" +msgstr "" + +#. module: base_name_search_improved +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids +msgid "Name Search Fields" +msgstr "" + diff --git a/base_name_search_improved/i18n/ca.po b/base_name_search_improved/i18n/ca.po index 8d158044e..5be2c93f0 100644 --- a/base_name_search_improved/i18n/ca.po +++ b/base_name_search_improved/i18n/ca.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Marc Tormo i Bochaca , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-19 17:59+0000\n" "Last-Translator: Marc Tormo i Bochaca , 2017\n" "Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/de.po b/base_name_search_improved/i18n/de.po index e9c8130d5..8eaba33dd 100644 --- a/base_name_search_improved/i18n/de.po +++ b/base_name_search_improved/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 # Rudolf Schnapka , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-03-04 07:38+0000\n" "Last-Translator: Rudolf Schnapka , 2017\n" "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/es.po b/base_name_search_improved/i18n/es.po index c2166fbc1..3ba5380db 100644 --- a/base_name_search_improved/i18n/es.po +++ b/base_name_search_improved/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 # Pedro M. Baeza , 2016 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2016-12-23 21:53+0000\n" "Last-Translator: Pedro M. Baeza , 2016\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/es_ES.po b/base_name_search_improved/i18n/es_ES.po index e3129b019..c81901e8c 100644 --- a/base_name_search_improved/i18n/es_ES.po +++ b/base_name_search_improved/i18n/es_ES.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Fernando Lara , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-02-16 10:39+0000\n" "PO-Revision-Date: 2017-02-16 10:39+0000\n" "Last-Translator: Fernando Lara , 2017\n" -"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es_ES\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/eu.po b/base_name_search_improved/i18n/eu.po index e0817e0c4..2f990b371 100644 --- a/base_name_search_improved/i18n/eu.po +++ b/base_name_search_improved/i18n/eu.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Esther Martín Menéndez , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-02-22 00:48+0000\n" "Last-Translator: Esther Martín Menéndez , 2017\n" "Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: eu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/fi.po b/base_name_search_improved/i18n/fi.po index d9844d63a..ac254a1fa 100644 --- a/base_name_search_improved/i18n/fi.po +++ b/base_name_search_improved/i18n/fi.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Jarmo Kortetjärvi , 2016 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2016-09-21 00:47+0000\n" "Last-Translator: Jarmo Kortetjärvi , 2016\n" "Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved @@ -24,6 +24,6 @@ msgid "Models" msgstr "Mallit" #. module: base_name_search_improved -#: field:ir.model,name_search_ids:0 +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" msgstr "" diff --git a/base_name_search_improved/i18n/fr.po b/base_name_search_improved/i18n/fr.po index 6b7406957..1b73b660b 100644 --- a/base_name_search_improved/i18n/fr.po +++ b/base_name_search_improved/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2016-06-17 02:42+0000\n" "Last-Translator: OCA Transbot , 2016\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: base_name_search_improved @@ -24,6 +24,6 @@ msgid "Models" msgstr "Modèles" #. module: base_name_search_improved -#: field:ir.model,name_search_ids:0 +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" msgstr "" diff --git a/base_name_search_improved/i18n/hr.po b/base_name_search_improved/i18n/hr.po index 92bb6cba0..ce443ddaa 100644 --- a/base_name_search_improved/i18n/hr.po +++ b/base_name_search_improved/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Bole , 2016 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2016-09-21 00:47+0000\n" "Last-Translator: Bole , 2016\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: hr\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: base_name_search_improved #: model:ir.model,name:base_name_search_improved.model_ir_model @@ -24,6 +25,6 @@ msgid "Models" msgstr "Modeli" #. module: base_name_search_improved -#: field:ir.model,name_search_ids:0 +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" msgstr "" diff --git a/base_name_search_improved/i18n/hr_HR.po b/base_name_search_improved/i18n/hr_HR.po index 1bb91a808..553139381 100644 --- a/base_name_search_improved/i18n/hr_HR.po +++ b/base_name_search_improved/i18n/hr_HR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Bole , 2016 msgid "" @@ -11,12 +11,14 @@ msgstr "" "POT-Creation-Date: 2016-09-21 00:47+0000\n" "PO-Revision-Date: 2016-09-21 00:47+0000\n" "Last-Translator: Bole , 2016\n" -"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: hr_HR\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: base_name_search_improved #: model:ir.model,name:base_name_search_improved.model_ir_model @@ -24,6 +26,6 @@ msgid "Models" msgstr "Modeli" #. module: base_name_search_improved -#: field:ir.model,name_search_ids:0 +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" msgstr "" diff --git a/base_name_search_improved/i18n/it.po b/base_name_search_improved/i18n/it.po index a237b042b..bcf08bb20 100644 --- a/base_name_search_improved/i18n/it.po +++ b/base_name_search_improved/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Paolo Valier , 2016 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2016-06-17 02:42+0000\n" "Last-Translator: Paolo Valier , 2016\n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved @@ -24,6 +24,6 @@ msgid "Models" msgstr "Modelli" #. module: base_name_search_improved -#: field:ir.model,name_search_ids:0 +#: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" msgstr "" diff --git a/base_name_search_improved/i18n/nb_NO.po b/base_name_search_improved/i18n/nb_NO.po index 588f2dedb..f4c9c2b0b 100644 --- a/base_name_search_improved/i18n/nb_NO.po +++ b/base_name_search_improved/i18n/nb_NO.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Imre Kristoffer Eilertsen , 2016 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2016-12-17 02:07+0000\n" "PO-Revision-Date: 2016-12-17 02:07+0000\n" "Last-Translator: Imre Kristoffer Eilertsen , 2016\n" -"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" +"teams/23907/nb_NO/)\n" +"Language: nb_NO\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nb_NO\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/nl.po b/base_name_search_improved/i18n/nl.po index 787a51cdb..1e1c338e6 100644 --- a/base_name_search_improved/i18n/nl.po +++ b/base_name_search_improved/i18n/nl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # lfreeke , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-19 17:59+0000\n" "Last-Translator: lfreeke , 2017\n" "Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/pt_BR.po b/base_name_search_improved/i18n/pt_BR.po index d84e5581f..42b30c3b3 100644 --- a/base_name_search_improved/i18n/pt_BR.po +++ b/base_name_search_improved/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 # Armando Vulcano Junior , 2017 @@ -12,11 +12,12 @@ msgstr "" "POT-Creation-Date: 2017-10-28 11:05+0000\n" "PO-Revision-Date: 2017-10-28 11:05+0000\n" "Last-Translator: Armando Vulcano Junior , 2017\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/sl.po b/base_name_search_improved/i18n/sl.po index 790b4728f..f8f078056 100644 --- a/base_name_search_improved/i18n/sl.po +++ b/base_name_search_improved/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2016-12-17 02:07+0000\n" "Last-Translator: OCA Transbot , 2016\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: base_name_search_improved #: model:ir.model,name:base_name_search_improved.model_ir_model diff --git a/base_name_search_improved/i18n/tr.po b/base_name_search_improved/i18n/tr.po index eedd0cc53..854b5d71b 100644 --- a/base_name_search_improved/i18n/tr.po +++ b/base_name_search_improved/i18n/tr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # OCA Transbot , 2016 # Ahmet Altinisik , 2016 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2016-12-29 03:39+0000\n" "Last-Translator: Ahmet Altinisik , 2016\n" "Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/tr_TR.po b/base_name_search_improved/i18n/tr_TR.po index c5c0acd08..60be7063a 100644 --- a/base_name_search_improved/i18n/tr_TR.po +++ b/base_name_search_improved/i18n/tr_TR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Ozge Altinisik , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-01-07 04:03+0000\n" "PO-Revision-Date: 2017-01-07 04:03+0000\n" "Last-Translator: Ozge Altinisik , 2017\n" -"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr_TR\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: base_name_search_improved diff --git a/base_name_search_improved/i18n/zh_CN.po b/base_name_search_improved/i18n/zh_CN.po index 54b53275c..36cc56f4d 100644 --- a/base_name_search_improved/i18n/zh_CN.po +++ b/base_name_search_improved/i18n/zh_CN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * base_name_search_improved -# +# # Translators: # Jeffery Chen Fan , 2016 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2016-12-17 02:07+0000\n" "PO-Revision-Date: 2016-12-17 02:07+0000\n" "Last-Translator: Jeffery Chen Fan , 2016\n" -"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: base_name_search_improved From cae85cc3855089340599c514610455546fae0544 Mon Sep 17 00:00:00 2001 From: mtbochaca Date: Tue, 3 Jul 2018 09:21:19 +0000 Subject: [PATCH 12/13] Translated using Weblate (Catalan) Currently translated at 100.0% (2 of 2 strings) Translation: server-tools-9.0/server-tools-9.0-base_name_search_improved Translate-URL: https://translation.odoo-community.org/projects/server-tools-9-0/server-tools-9-0-base_name_search_improved/ca/ --- base_name_search_improved/i18n/ca.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/base_name_search_improved/i18n/ca.po b/base_name_search_improved/i18n/ca.po index 5be2c93f0..14b514ca6 100644 --- a/base_name_search_improved/i18n/ca.po +++ b/base_name_search_improved/i18n/ca.po @@ -9,14 +9,15 @@ msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-19 17:59+0000\n" -"PO-Revision-Date: 2017-04-19 17:59+0000\n" -"Last-Translator: Marc Tormo i Bochaca , 2017\n" +"PO-Revision-Date: 2018-07-04 10:03+0000\n" +"Last-Translator: mtbochaca \n" "Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.0.1\n" #. module: base_name_search_improved #: model:ir.model,name:base_name_search_improved.model_ir_model @@ -26,4 +27,4 @@ msgstr "Models " #. module: base_name_search_improved #: model:ir.model.fields,field_description:base_name_search_improved.field_ir_model_name_search_ids msgid "Name Search Fields" -msgstr "Camps de cerca de nom " +msgstr "Camps de cerca de nom" From 947e68b804dbfc35eafa93bd19c648699173107b Mon Sep 17 00:00:00 2001 From: Katherine Zaoral Date: Thu, 5 Jul 2018 10:32:27 -0300 Subject: [PATCH 13/13] [MIG] base_name_search_improved: Migration to 11.0 - Descriptor: change __openerp__.py file to __manifest__.py also update module version from 9.0.1.0.0 to 11.0.1.0.0 - Update README using guideline - Views: replace view tag openerp to odoo and rename files to match guideline - Models - update imports from openerp to odoo - remove enconding line # -*- coding: utf-8 -*- - update to make it compatible - remove use of SUPERUSER_ID use sudo instead. - rename class name to make it match with guideline. - update methods to match api used in version 11.0 - fix pylint errors - replace use of non exist self._model with self._name - use `Model `is not None instead of if `Model` this becuase the last one is a empty recordset and this one was evaluate to False and never was patching the method. - apply changes resquested/suggested in the PR by the reviewers. --- base_name_search_improved/README.rst | 90 +++++++++++-------- base_name_search_improved/__init__.py | 3 +- .../{__openerp__.py => __manifest__.py} | 9 +- base_name_search_improved/models/__init__.py | 3 +- base_name_search_improved/models/ir_model.py | 35 ++++---- .../readme/CONFIGURE.rst | 10 +++ .../readme/CONTRIBUTORS.rst | 1 + base_name_search_improved/readme/CREDITS.rst | 3 + .../readme/DESCRIPTION.rst | 35 ++++++++ base_name_search_improved/readme/ROADMAP.rst | 4 + base_name_search_improved/readme/USAGE.rst | 1 + base_name_search_improved/tests/__init__.py | 3 +- .../tests/test_name_search.py | 5 +- .../{ir_model.xml => ir_model_views.xml} | 6 +- 14 files changed, 139 insertions(+), 69 deletions(-) rename base_name_search_improved/{__openerp__.py => __manifest__.py} (71%) create mode 100644 base_name_search_improved/readme/CONFIGURE.rst create mode 100644 base_name_search_improved/readme/CONTRIBUTORS.rst create mode 100644 base_name_search_improved/readme/CREDITS.rst create mode 100644 base_name_search_improved/readme/DESCRIPTION.rst create mode 100644 base_name_search_improved/readme/ROADMAP.rst create mode 100644 base_name_search_improved/readme/USAGE.rst rename base_name_search_improved/views/{ir_model.xml => ir_model_views.xml} (93%) diff --git a/base_name_search_improved/README.rst b/base_name_search_improved/README.rst index 7001cb485..02d5fd46f 100644 --- a/base_name_search_improved/README.rst +++ b/base_name_search_improved/README.rst @@ -1,11 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ==================== Improved Name Search ==================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github + :target: https://github.com/OCA/server-tools/tree/11.0/base_name_search_improved + :alt: OCA/server-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-base_name_search_improved + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/149/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Extends the name search feature to use additional, more relaxed matching methods, and to allow searching into configurable additional record fields. @@ -19,12 +38,12 @@ so "John M. Brown" would be a match. It also tolerates words in a different order, so searching for "brown john" also works. -.. image:: images/image0.png +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image0.png Additionally, an Administrator can configure other fields to also lookup into. For example, Customers could be additionally searched by City or Phone number. -.. image:: images/image2.png +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image2.png How it works: @@ -42,12 +61,10 @@ The specific methods used are: All results found are presented in that order, hopefully presenting them in order of relevance. +**Table of contents** -Installation -============ - -No specific requirements. - +.. contents:: + :local: Configuration ============= @@ -59,22 +76,15 @@ The regular ``search()``, used in the top right search box, is not affected. Additional search fields can be configured at Settings > Technical > Database > Models, using the "Name Search Fields" field. -.. image:: images/image1.png - +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image1.png + :alt: Name Search Fields + :width: 600 px Usage ===== Just type into any related field, such as Customer on a Sale Order. - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 - -.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt -.. branch is "8.0" for example - Known issues / Roadmap ====================== @@ -83,39 +93,49 @@ Known issues / Roadmap * The list of additional fields to search could benefit from caching, for efficiency. * This feature could also be implemented for regular ``search`` on the ``name`` field. - 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. +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 `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Daniel Reis Contributors ------------- +~~~~~~~~~~~~ * Daniel Reis -Maintainer ----------- +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Odoo Community Association + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://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 https://odoo-community.org. +This module is part of the `OCA/server-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_name_search_improved/__init__.py b/base_name_search_improved/__init__.py index a0fdc10fe..a7c34e431 100644 --- a/base_name_search_improved/__init__.py +++ b/base_name_search_improved/__init__.py @@ -1,2 +1,3 @@ -# -*- coding: utf-8 -*- +# Copyright 2016 Daniel Reis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/base_name_search_improved/__openerp__.py b/base_name_search_improved/__manifest__.py similarity index 71% rename from base_name_search_improved/__openerp__.py rename to base_name_search_improved/__manifest__.py index 0b0b54e97..cc1db964c 100644 --- a/base_name_search_improved/__openerp__.py +++ b/base_name_search_improved/__manifest__.py @@ -1,16 +1,15 @@ -# -*- coding: utf-8 -*- -# © 2016 Daniel Reis +# Copyright 2016 Daniel Reis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Improved Name Search', 'summary': 'Friendlier search when typing in relation fields', - 'version': '9.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Uncategorized', - 'website': 'https://odoo-community.org/', + 'website': 'https://github.com/OCA/server-tools', 'author': 'Daniel Reis, Odoo Community Association (OCA)', 'license': 'AGPL-3', 'data': [ - 'views/ir_model.xml', + 'views/ir_model_views.xml', ], 'depends': [ 'base', diff --git a/base_name_search_improved/models/__init__.py b/base_name_search_improved/models/__init__.py index 58755e280..c201f735b 100644 --- a/base_name_search_improved/models/__init__.py +++ b/base_name_search_improved/models/__init__.py @@ -1,2 +1,3 @@ -# -*- coding: utf-8 -*- +# Copyright 2016 Daniel Reis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import ir_model diff --git a/base_name_search_improved/models/ir_model.py b/base_name_search_improved/models/ir_model.py index cea0dd3c9..0b5baaac4 100644 --- a/base_name_search_improved/models/ir_model.py +++ b/base_name_search_improved/models/ir_model.py @@ -1,22 +1,18 @@ -# -*- coding: utf-8 -*- -# © 2016 Daniel Reis +# Copyright 2016 Daniel Reis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import models, fields, api -from openerp import SUPERUSER_ID -from openerp import tools - +from odoo import models, fields, api, tools # Extended name search is only used on some operators -ALLOWED_OPS = set(['ilike', 'like']) +ALLOWED_OPS = {'ilike', 'like'} @tools.ormcache(skiparg=0) def _get_rec_names(self): "List of fields to search into" model = self.env['ir.model'].search( - [('model', '=', str(self._model))]) - rec_name = [self._rec_name] or [] + [('model', '=', self._name)]) + rec_name = [self._rec_name] if bool(self._rec_name) else [] other_names = model.name_search_ids.mapped('name') return rec_name + other_names @@ -30,14 +26,15 @@ def _extend_name_results(self, domain, results, limit): return results -class ModelExtended(models.Model): +class IrModel(models.Model): _inherit = 'ir.model' name_search_ids = fields.Many2many( 'ir.model.fields', string='Name Search Fields') - def _register_hook(self, cr, ids=None): + @api.model_cr + def _register_hook(self): def make_name_search(): @@ -46,7 +43,8 @@ class ModelExtended(models.Model): operator='ilike', limit=100): # Perform standard name search res = name_search.origin( - self, name=name, args=args, operator=operator, limit=limit) + self, name=name, args=args, operator=operator, + limit=limit) enabled = self.env.context.get('name_search_extended', True) # Perform extended name search # Note: Empty name causes error on @@ -62,7 +60,8 @@ class ModelExtended(models.Model): self, base_domain + domain, res, limit) # Try ordered word search on each of the search fields for rec_name in all_names: - domain = [(rec_name, operator, name.replace(' ', '%'))] + domain = [ + (rec_name, operator, name.replace(' ', '%'))] res = _extend_name_results( self, base_domain + domain, res, limit) # Try unordered word search on each of the search fields @@ -74,10 +73,8 @@ class ModelExtended(models.Model): return res return name_search - if ids is None: - ids = self.search(cr, SUPERUSER_ID, []) - for model in self.browse(cr, SUPERUSER_ID, ids): - Model = self.pool.get(model.model) - if Model: + for model in self.sudo().search(self.ids or []): + Model = self.env.get(model.model) + if Model is not None: Model._patch_method('name_search', make_name_search()) - return super(ModelExtended, self)._register_hook(cr) + return super(IrModel, self)._register_hook() diff --git a/base_name_search_improved/readme/CONFIGURE.rst b/base_name_search_improved/readme/CONFIGURE.rst new file mode 100644 index 000000000..e4d666e8b --- /dev/null +++ b/base_name_search_improved/readme/CONFIGURE.rst @@ -0,0 +1,10 @@ +The fuzzy search is automatically enabled on all Models. +Note that this only affects typing in related fields. +The regular ``search()``, used in the top right search box, is not affected. + +Additional search fields can be configured at Settings > Technical > Database > Models, +using the "Name Search Fields" field. + +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image1.png + :alt: Name Search Fields + :width: 600 px diff --git a/base_name_search_improved/readme/CONTRIBUTORS.rst b/base_name_search_improved/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..3b7e3d4cb --- /dev/null +++ b/base_name_search_improved/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Daniel Reis diff --git a/base_name_search_improved/readme/CREDITS.rst b/base_name_search_improved/readme/CREDITS.rst new file mode 100644 index 000000000..10db89c68 --- /dev/null +++ b/base_name_search_improved/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Odoo Community Association diff --git a/base_name_search_improved/readme/DESCRIPTION.rst b/base_name_search_improved/readme/DESCRIPTION.rst new file mode 100644 index 000000000..a35c57e46 --- /dev/null +++ b/base_name_search_improved/readme/DESCRIPTION.rst @@ -0,0 +1,35 @@ +Extends the name search feature to use additional, more relaxed +matching methods, and to allow searching into configurable additional +record fields. + +The name search is the lookup feature to select a related record. +For example, selecting a Customer on a new Sales order. + +For example, typing "john brown" doesn't match "John M. Brown". +The relaxed search also looks up for records containing all the words, +so "John M. Brown" would be a match. +It also tolerates words in a different order, so searching +for "brown john" also works. + +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image0.png + +Additionally, an Administrator can configure other fields to also lookup into. +For example, Customers could be additionally searched by City or Phone number. + +.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image2.png + +How it works: + +Regular name search is performed, and the additional search logic is only +triggered if not enough results are found. +This way, no overhead is added on searches that would normally yield results. + +But if not enough results are found, then additional search methods are tried. +The specific methods used are: + +- Try regular search on each of the additional fields +- Try ordered word search on each of the search fields +- Try unordered word search on each of the search fields + +All results found are presented in that order, +hopefully presenting them in order of relevance. diff --git a/base_name_search_improved/readme/ROADMAP.rst b/base_name_search_improved/readme/ROADMAP.rst new file mode 100644 index 000000000..ecb7b4128 --- /dev/null +++ b/base_name_search_improved/readme/ROADMAP.rst @@ -0,0 +1,4 @@ +* Also use fuzzy search, such as the Levenshtein distance: + https://www.postgresql.org/docs/9.5/static/fuzzystrmatch.html +* The list of additional fields to search could benefit from caching, for efficiency. +* This feature could also be implemented for regular ``search`` on the ``name`` field. diff --git a/base_name_search_improved/readme/USAGE.rst b/base_name_search_improved/readme/USAGE.rst new file mode 100644 index 000000000..049b6284a --- /dev/null +++ b/base_name_search_improved/readme/USAGE.rst @@ -0,0 +1 @@ +Just type into any related field, such as Customer on a Sale Order. diff --git a/base_name_search_improved/tests/__init__.py b/base_name_search_improved/tests/__init__.py index 4ea57064e..ac09dbe92 100644 --- a/base_name_search_improved/tests/__init__.py +++ b/base_name_search_improved/tests/__init__.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# © 2016 Daniel Reis +# Copyright 2016 Daniel Reis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_name_search diff --git a/base_name_search_improved/tests/test_name_search.py b/base_name_search_improved/tests/test_name_search.py index 72dd9933c..0ce407d8f 100644 --- a/base_name_search_improved/tests/test_name_search.py +++ b/base_name_search_improved/tests/test_name_search.py @@ -1,8 +1,7 @@ -# -*- coding: utf-8 -*- -# © 2016 Daniel Reis +# Copyright 2016 Daniel Reis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.tests.common import TransactionCase, at_install, post_install +from odoo.tests.common import TransactionCase, at_install, post_install @at_install(False) diff --git a/base_name_search_improved/views/ir_model.xml b/base_name_search_improved/views/ir_model_views.xml similarity index 93% rename from base_name_search_improved/views/ir_model.xml rename to base_name_search_improved/views/ir_model_views.xml index ba90d10b0..7759f0bc3 100644 --- a/base_name_search_improved/views/ir_model.xml +++ b/base_name_search_improved/views/ir_model_views.xml @@ -1,8 +1,8 @@ - - + Add Name Searchable to Models @@ -18,4 +18,4 @@ - +