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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
Your answer is here:https://www.odoo.com/forum/help-1/question/showing-many2one-fields-in-other-modules-102434#answer-102471