Odoo Help


1 Answer

Francesco OpenCode Italy

--Francesco OpenCode--

| 7 8 11
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo Developer. Python lover. Beer addicted.

LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode Italy
3/29/13, 8:51 AM

The "empty element" gives you the opportunity to leave the field empty. If you need to insert a default value in the field you can use:

_defaluts = {
  'field_name' : 'default_value',

or you can set the field as required so the user are forced to select a voice in the selection to save the recvord.

priyankahdp Sri Lanka
3/29/13, 9:12 AM

thanks Francesco . :-)

Vaibhav United Arab Emirates
10/21/13, 12:04 PM

Thanks Its working :)

Prakash India
1/17/14, 10:18 AM

I used default value. Its working fine form loading with default value but in the drop down empty options also shown. How to remove empty options completely and in the selection shows only two options. (male, female) Thanks for your help

Rui Andrada Brazil
12/7/14, 9:47 PM

As Prakash says, the default not removes empty option from selection field. I think this answer not resolve the question asked. I think the empty option should be removed after user selects as required field, but is not happens yet.

Ask a Question
Keep Informed
0 follower(s)
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