Odoo Help

0

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

By
Siobhan
on 5/8/15, 2:13 AM 770 views

Hello

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?

1
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 :-)

Siobhan
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.

Register

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)

Stats

Asked: 5/8/15, 2:13 AM
Seen: 770 times
Last updated: 5/29/15, 4:45 AM