This question has been flagged
1 Reply
2007 Views

  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?

Avatar
Discard

Your answer is here:https://www.odoo.com/forum/help-1/question/showing-many2one-fields-in-other-modules-102434#answer-102471

Best Answer

Hello Ahmed,

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.


Avatar
Discard