--unaccent option does not work
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
6.1 |
Fix Released
|
Medium
|
Yann Papouin | |||
7.0 |
Invalid
|
Medium
|
Yann Papouin |
Bug Description
I have OpenERP v6.1 in Ubuntu 12.04 with PostgreSQL. I updated the nightly builds, version: OpenERP Server 6.1-20120910-
I create a new OpenERP database called X.
I installed postgresql-contrib for using unaccent in PostgreSQL and connect to the database X with psql. I execute "create extension unaccent;" to have access to unaccent in the database X.
I start the OpenERP server with the '--unaccent' option.
After all this, if I search over product name, I do not receive the expected result. For example, if I have products 'aeío' and 'aeio' and I search with string 'aeí' I receive only the first product and not the second.
I check the log (using option --log-sql in the server) and I don't see any usage of unaccent function in the querys.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 27 lines (+12/-5)1 file modifiedopenerp/osv/expression.py (+12/-5)
- OpenERP Core Team: Pending requested
-
Diff: 73 lines (+36/-7)2 files modifiedopenerp/addons/base/test/test_osv_expression.yml (+24/-2)
openerp/osv/expression.py (+12/-5)
- Holger Brunn (Therp): Approve (code review)
- Pedro Manuel Baeza: Approve
-
Diff: 27 lines (+12/-5)1 file modifiedopenerp/osv/expression.py (+12/-5)
- OpenERP Core Team: Pending requested
-
Diff: 27 lines (+12/-5)1 file modifiedopenerp/osv/expression.py (+12/-5)
- Raphaël Valyi - http://www.akretion.com: Needs Information
- Pedro Manuel Baeza: Approve (code review)
- Holger Brunn (Therp): Approve (code review)
-
Diff: 27 lines (+12/-5)1 file modifiedopenerp/osv/expression.py (+12/-5)
- OpenERP Core Team: Pending requested
-
Diff: 80 lines (+28/-22)1 file modifiedopenerp/osv/expression.py (+28/-22)
Sorry, I forgot to said that the versión of PostgreSQL is 9.1.