Odoo Help


Showing Record by name?

on 5/24/16, 3:56 PM 500 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?

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

Jusab Sida (jsi)
on 5/25/16, 2:11 AM

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.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/24/16, 3:56 PM
Seen: 500 times
Last updated: 5/25/16, 1:41 AM