Odoo Help

0

How to set a _rec_name value through web client development?

By
Zeeshan Khan
on 9/18/13, 6:23 AM 1,029 views

I am using the web client for my development and wanted to know wether is was possible to set a _rec_name value through there.

I have created a many2one field but the lookup shows the ids not a field value. Also through the web client you cannot create a name field as all custom fields must start with 'x_'

How can I choose a field to display in the lookup instead of the id.

you have to overide name_get method inside the model instead of id name will be shown

Abhishek H Menon
on 9/18/13, 9:47 AM

Hi, How can I achieve this through the web client. I have created the object through going to Technical -> Database Structure -> Models.

Zeraxis Limited, Zeeshan Khan
on 9/18/13, 9:49 AM

Well, it's better if you don't do that through the web client, if you update some base modules everything is going to dissapear. Create a module and code everything there.

GH Mediacloud, Grover Menacho
on 9/18/13, 11:43 AM

I agree with Grover. Maximum you must do all the edits and updates on the coding part. Because suppose when you wish to update the module all the changes you made in the client side will disappear. And that practice is also not good. So try with coding.

Abhishek H Menon
on 9/19/13, 2:43 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: 9/18/13, 6:23 AM
Seen: 1029 times
Last updated: 3/16/15, 8:10 AM