-
- Downloads
[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
Showing
- addons/mail/static/src/js/composers/basic_composer.js 5 additions, 5 deletionsaddons/mail/static/src/js/composers/basic_composer.js
- addons/mail/static/src/js/services/mail_manager.js 2 additions, 1 deletionaddons/mail/static/src/js/services/mail_manager.js
- addons/mail/static/src/js/utils.js 0 additions, 20 deletionsaddons/mail/static/src/js/utils.js
- addons/point_of_sale/static/src/js/db.js 5 additions, 4 deletionsaddons/point_of_sale/static/src/js/db.js
- addons/web/static/src/js/core/utils.js 204 additions, 0 deletionsaddons/web/static/src/js/core/utils.js
- addons/web/static/tests/core/util_tests.js 13 additions, 1 deletionaddons/web/static/tests/core/util_tests.js
Loading
Please register or sign in to comment