Odoo Help


Fill many2one

on 7/25/14, 4:56 AM 565 views

I had a journal field(many2one) and my requirement is to display one of the journal item as default while opening the form itself.How can we do that..


Simple !

1) Create Journal records by XML file. ( This is optional)

2) Then in _defaults add a function to search journal by XML ID. 

3) If your journal finds in _default, then when you open form view, automatically that journal will populated in many2one field.

Let me know still you have confusion,




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 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.


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)


Asked: 7/25/14, 4:56 AM
Seen: 565 times
Last updated: 3/16/15, 8:10 AM