odoo/odoo#76436

Created by Framework (ORM), Xavier Morel (xmo)
Merged at 5e81361f800c4781e3aa308f3044254dac75cc34

Statuses:

Linked pull requests
label
odoo-dev:master-unaccent-pocalypse-xmo
head
803aa3729382ceb004e6046ac0791dc12b778156
merged
5 years ago by Framework (ORM), Xavier Morel (xmo)
odoo/odoo odoo/enterprise
master #76436 #20822

Improve unaccent handling

Covers tasks 2627454 (allow opting out of unaccent for indexing / performance reasons) and 2634851 (natively support psycopg2.sql in the unaccent wrapper).

task-2551518 (unaccent indexes) is ignored, as it's not clear whether that should be handled in the ORM (with workarounds for unaccent not being IMMUTABLE) or just documented as a danger (generally speaking behaviour with respect to unaccent seems completely undocumented currently so...).