Odoo Help


[Solved] Title won't covert to actual name - Odoo 8

on 5/8/15, 2:13 AM 966 views


I have created my own module and would like to use res.partner as the first field so when I click on the entry it will show the module name and then the company name. 

In my class I have "res_partner_id": fields.many2one("res.partner", "Company"), as the first entry but when I create an entry and then open it, the top header looks like this:

Profil / profile.add,8

Is there anyway I can change the profile.add, 8 to show the actually company name?

Is this even possible?

Jaakko Komulainen
On 5/29/15, 4:08 AM

You need to add _rec_name to your module:

_rec_name = 'res_partner_id' 

edit: here is more in-depth explanation:_rec_name - predefined fields

Amazing.. thank you.. so easy when you know how :-)

on 5/29/15, 4:39 AM

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/8/15, 2:13 AM
Seen: 966 times
Last updated: 5/29/15, 4:45 AM