Odoo Help


Value selected by default ? [Closed]

Dr Obx
on 4/22/15, 10:52 AM 446 views

The Question has been closed for reason: not relevant or out dated

Dr Obx
on 04/22/2015 17:04:51

Hi there,

Is it possible to select value from list for example:

condition = fields.selection([('new','new'),('old','old'),('dunno','dunno')],'Condition')

somehow like that in xml ?

<field name="condition" selected="used"/>

Michael Pol
On 4/22/15, 11:55 AM

Use _defaults if you are following old standard.

_defaults = {

    'condition' : 'new'


For new version

condition = fields.Selection([('new','new'),('old','old'),('dunno','dunno')],'Condition',default='new')

Aaaa ok, that way, simple, thank you

Dr Obx
on 4/22/15, 5:04 PM

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

1 follower(s)


Asked: 4/22/15, 10:52 AM
Seen: 446 times
Last updated: 4/22/15, 5:04 PM