Odoo Help

2
Axel Mendoza
On 5/13/16, 6:47 AM

Hi MouBou

_rec_name is intended to define the record value used to display it in search for many2one and others cases. By default it is assumed by convention that you have a field named 'name' in your model. This is used in methods like name_get and name_search of the ORM. 

You usually define it on models that do not contains a field named 'name'

Or on models where you want to show another value by default than the name. Accepted the answer. :)

Yenthe
on 5/13/16, 8:36 AM

It is a unique recognizer for your relational table's record(mainly M2O), mandatory for tables where there is no 'name' field, and functionally important when you want a special pattern to recognise your record (like Product, Address, Full name).

Serpent Consulting Services Pvt. Ltd.
on 5/14/16, 6:27 AM
0

It is a unique recognizer for your relational table's record(mainly M2O), mandatory for tables where there is no 'name' field, and functionally important when you want a special pattern to recognise your record (like Product, Address, Full name).

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/13/16, 6:01 AM
Seen: 1642 times
Last updated: 5/14/16, 6:28 AM