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

How to set a _rec_name value through web client development?

By
Zeeshan Khan
on 9/18/13, 6:23 AM 954 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

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: 9/18/13, 6:23 AM
Seen: 954 times
Last updated: 3/16/15, 8:10 AM