Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 224

How to use a placeholder with a field selection?

$
0
0
Hi, I'm trying to remove "state" field in the res_partner address, because in Portugal there is no state in the address. So I'm trying to replace the state field with the "distritos" field. I created the field like this: _columns = { 'distritos': fields.selection([ ('av', 'Aveiro'), ('bj', 'Beja'), ('bg', 'Braga'), ('bgc', 'Bragança'), ('cb', 'Castelo Branco'), ('c', 'Coimbra'), ('ev', 'Évora'), ('fr', 'Faro'), ('g', 'Guarda'), ('lr', 'Leiria'), ('lx', 'Lisboa'), ('ptg', 'Portalegre'), ('pt', 'Porto'), ('st', 'Santarém'), ('sb', 'Setúbal'), ('vc', 'Viana do Castelo'), ('vr', 'Vila Real'), ('v', 'Viseu'), ],'Distrito'), } In the view I tried like this : But "Distritos" is shown in black (image below) , and I wanted that the color was grey like in the other type of fields (like "País" in the image below). ![image description](/upfiles/13837537105542085.png) Someone knows if it is possible to use placeholders with a field selection ? Thanks

Viewing all articles
Browse latest Browse all 224

Trending Articles