I have created field with many2one field it display like tablename.name,1 in the drop down instead of correct name.
Can any one help me...
Thanks In advanced..
Many2one drop box shows relation table column
name value or
_rec_name field value
'field_id': fields.many2one('mymodule.relation.model', 'Test'),
check many2one relation model table "name" column is available.
If 'name' column is not available in python file then create
_rec_name = "field_name"
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/21/14, 3:23 AM|
|Seen: 1369 times|
|Last updated: 3/16/15, 8:10 AM|