summaryrefslogtreecommitdiff
path: root/addons/link_tracker/controller/main.py
diff options
context:
space:
mode:
authormgh-odoo <mgh@odoo.com>2018-10-29 08:42:59 +0000
committermgh-odoo <mgh@odoo.com>2019-01-10 12:31:53 +0000
commit9ee9724a10fc5e835d8d42da0e9e83fe687848d8 (patch)
tree362c7afc5f90e1c90746df80835355793e55733f /addons/link_tracker/controller/main.py
parent80f3eb27f7a0ad0390eca6ac9b7bd03df71c4ec2 (diff)
[Generic] unaccent search
- added unaccent search on POS customer/partner and product - moved unaccent from "mail.utils" to "web.utils" - added more character to make function accurate We might use str.normalize(from ES6) but the problem is str.normalize method can not consider some double characters i.e. accented character when normalized it returns 2 normal characters and normalize method returns single character, so here custom unaccent method is used to normalize the string What we can improve here: We can use str.normalize method and check if string is still have unaccented charaters that we can call our unaccent method but this unaccent method is also working and performing well closes odoo/odoo#27671
Diffstat (limited to 'addons/link_tracker/controller/main.py')
0 files changed, 0 insertions, 0 deletions