Odoo Help

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 945 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
}

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

0 follower(s)

Stats

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