# Button possible actions

**URL:** https://discuss.tryton.org/t/button-possible-actions/4980
**Category:** Developer
**Created:** [February 1, 2022, 11:38am UTC](https://discuss.tryton.org/t/button-possible-actions/4980 "2022-02-01T11:38:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Thibaut](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Thibaut](https://discuss.tryton.org/u/Thibaut)
#### Post date: [February 1, 2022, 11:38am UTC](https://discuss.tryton.org/t/button-possible-actions/4980/1 "2022-02-01T11:38:36Z")

</div>

Hi,

I have a wizard window that contains an O2M as a tree view and each line has a button.  
I would like to open a tab to a model form view (preferably a tab in the model form view) via these buttons.  
Would it be possible by connecting the buttons to an ir.action.act\_window ? I can’t make it work. I’ve only seen connections to ir.action.wizard. The documention says that a button can be connected to any ir.action, or I misundestood ?

Thank you for your answers.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 1, 2022, 12:01pm UTC](https://discuss.tryton.org/t/button-possible-actions/4980/2 "2022-02-01T12:01:36Z")

</div>

> [@Thibaut](#):
>
> I have a wizard window that contains an O2M as a tree view and each line has a button.

You should not. Button should be reserved to standard form not wizard. It may work but it is by chance.  
Wizard must be used as small tool to perform one action.

> [@Thibaut](#):
>
> Would it be possible by connecting the buttons to an ir.action.act\_window ?

Yes you must use the decorator `@ModelView.button_action()`.
