Odoo Help

0

Many2many field default view_id

By
Miro
on 2/9/16, 10:13 AM 512 views

Hello,

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

"kwargs":{"view_id":false,"view_type":"search"......}

How to set view_id and view_type ?

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

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

1 follower(s)

Stats

Asked: 2/9/16, 10:13 AM
Seen: 512 times
Last updated: 2/9/16, 2:09 PM