I am creating University management system in odoo. i create a relationship of many2one. it works but rather than showing the name exactly it is showing object,record number (univ.subject,2). how to get exactly the name of subject?
Default Odoo will display (Model,recordID) in relational field. If you want to see subject name in relation of M2O field then you have to define "name" field inside your "univ.subject" model or you have to set _rec_name="field".
Inside Odoo default _rec_name = "name". So, you just need to define exact "name" field inside your model or you have to set _rec_name parameter in your model.
I am sure that your issue will resolve.
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: 5/24/16, 3:56 PM|
|Seen: 225 times|
|Last updated: 5/25/16, 1:41 AM|