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.
We know that when you define a field with datatype of many2one and link it to "res.country.state" model example 'state':fields.many2one('res.country.state','State',required=True), it will display a selection button (drop down list box) wherein you could select a particular value example (Alabama, Alaska, Arizona etc.) ............ here "res.country.state" is a existing model in odoo
In my case i have a module ( i created my own model)
and then i override 'res_users' with a new field ('shipping_addr') in which this new field will be link to the previous class 'si'
and then i added it to a form view, Im able to see this new field, since this new field has a type of many2one it will generate a selection box (drop down list box). My question is this, why is it when i try to select something the values coming out in the drop down list box are si,1 si,2 (its like having a format of classname,recordno) i want it like the one in the 'state' variable as mentioned earlier (Alabama, Alaska, Arizona) , i want that when i click the dropdownlist button it will show the value in 'name' variable not an id like (si,1 si,2) how will i do this?
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/3/14, 4:18 AM|
|Seen: 1801 times|
|Last updated: 3/16/15, 8:10 AM|