Hey guys,
How i create a dropdown list in form view, specifically in the a quotation view.
Thnks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hey guys,
How i create a dropdown list in form view, specifically in the a quotation view.
Thnks.
Hi,
1)Inherit your model
2)define your field like
your_field= fields.Selection([ ('type1', 'Type 1'),('type2', 'Type 2'),],'Type', default='type1')
3)add ''your_field" in inherited view
Thanks !!! Aswini @ iWesabe
You have a couple of options. If the field contains a static list, you can define it as a Selection field. If you want to lookup the values from another model, you can define it as a Many2one field. You can then add this field to your form view.
The following link will be helpful if you are planning on coding this:
https://www.odoo.com/documentation/12.0/reference/orm.html#fields
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Odoo Mail Sending Limit
Solved
|
|
2
Dec 23
|
11994 | |
|
0
Oct 23
|
33 | ||
|
3
Oct 23
|
787 | ||
|
1
Oct 23
|
569 | ||
|
1
Aug 23
|
979 |