Odoo Help


How to add "à" and "é" in selection field ?

Anne-Sylvie Burri
on 5/30/13, 7:19 AM 809 views

Hi everybody,

I created a new selection field and I want to use "à" and "é" for basis text (Prive => Privé, Cours a la carte => Cours à la carte, Feries => Fériés).

Here is my code :

# -*- coding: utf-8 -*- from openerp.osv import fields, osv class crm_meeting(osv.osv):
_inherit = 'crm.meeting'
_name = 'crm.meeting'
_columns = {
'categ': fields.selection((('Admin','Admin'), ('Anniversaires','Anniversaires'), ('Cours a la carte','Cours à la carte'), ('Cours NE','Cours NE'), ('Divers','Divers'), ('Examens NE','Examens NE'), ('Fondation','Fondation'), ('Info','Info'), ('Jours feries','Jours fériés'), ('Maladie','Maladie'), ('Prive','Privé'), ('Rendez-vous','Rendez-vous'), ('Staff / tous','Staff / tous'), ('Technique','Technique'), ('Vacances','Vacances'), ('Voyages','Voyages')),'Categories', required=True),

} crm_meeting()

Someone could help me ?

Many thanks in advance.


On 5/30/13, 7:32 AM


use unicode add a u before your selection value:

(u'Cours a la carte','Cours à la carte')

It works perfectly ! Thank you very much :-)

J.-M. Burri - Bureau ing.-conseils informatique, Anne-Sylvie Burri
on 5/30/13, 7:36 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/30/13, 7:19 AM
Seen: 809 times
Last updated: 3/16/15, 8:10 AM