Mssm
Mssm

Reputation: 787

Odoo display multiple wizards using tree view

I have a form with a tree view. Each line has a button to open a wizard containing informations about the line.

This first wizard contains also a tree view and each line of it has a button to trigger the opening of another wizard (second one). But once i try to open it (second wizard using any line) the first one closes.

Any idea ?

Upvotes: 0

Views: 904

Answers (1)

Mssm
Mssm

Reputation: 787

I fixed the problem by specifying the tree_view_ref attribute in the context and removed the button. In this way when i click on the line (not the button) i get a new wizard on the first one without hidding it

<field name="one2many_field" context="{'tree_view_ref': 'ref_to_second_wizard_id'}">
    <tree>...</tree>
</field>

Upvotes: 0

Related Questions