Odoo Help

Welcome!

This community 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.

0

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

By
Siobhan
on 5/8/15, 2:13 AM 575 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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