From 93ae6ca2bdb1c6fe4a07483aef0e5b941968dcb5 Mon Sep 17 00:00:00 2001 From: Raf Geens Date: Wed, 16 Sep 2020 16:40:58 +0200 Subject: [PATCH] [FIX] odoo.sh: Make unidecode description more specific MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original description says calling unidecode will remove special characters, but this is not entirely accurate. For example, when I inserted unicode emojis in the name, they were not removed. I was then confused whether my module had correctly updated or not. Instead, what unidecode will do is convert text characters to their nearest ASCII equivalent, so "trés" becomes "tres" for example. The description has been updated to reflect that. --- odoo_sh/getting_started/first_module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_sh/getting_started/first_module.rst b/odoo_sh/getting_started/first_module.rst index 55d808c3b..131eab6de 100644 --- a/odoo_sh/getting_started/first_module.rst +++ b/odoo_sh/getting_started/first_module.rst @@ -447,7 +447,7 @@ Add unidecode -Then use the library in your module, for instance to remove any special characters in the name field of your +Then use the library in your module, for instance to remove accents from characters in the name field of your model. Open the file *models/models.py*.