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?
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
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Your answer is here:https://www.odoo.com/forum/help-1/question/showing-many2one-fields-in-other-modules-102434#answer-102471