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 select a field by default to display in the results fields from many2one fields

By
mohamed habib challouf
on 7/11/13, 6:54 AM 847 views

how to select a field by default to display in the results fields from many2one fields.

1
Gabriel
On 7/12/13, 8:19 AM

If the question is how to define a default value in a many2one field, you can put it in the class object definition in your module.py file:

_defaults = {
    'your_field' : default_value
}

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

0 follower(s)

Stats

Asked: 7/11/13, 6:54 AM
Seen: 847 times
Last updated: 3/16/15, 8:10 AM