Odoo Help


Many2many field default view_id

on 2/9/16, 10:13 AM 756 views


In Odoo 8 is it possible to assign default view to the "Add an item" button?

My idea is opening form instead of tree view  when "Add an item" is clicked.

If i click this button i see POST request


How to set view_id and view_type ?

On 2/9/16, 10:47 AM

I figured it out. My field was Many2many, i set it's widget to one2many and now it opens a form when i click "Add an item".

<field name="contracts" colspan="2" context="{'default_supplier': id}" widget="one2many">

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: 2/9/16, 10:13 AM
Seen: 756 times
Last updated: 2/9/16, 2:09 PM