Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
how to remove first empty element from fields.selection [Closed]
need to remove first empty element from selection drop down list.and one is selected default.please advice me to do that friends..
its comes like
Gender ----------------------------- | |v| ----------------------------- EMPTY ELEMENT ----------------------------- Male ----------------------------- Female -----------------------------
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.
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
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.
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 3/29/13, 8:40 AM |
Seen: 6299 times |
Last updated: 4/12/16, 1:18 AM |