Action on selected rows in list view


Is it possible to have an action on a set of selected rows of a list view via the Wizard or a button in the header?
Or do I need to implement a button in each row to change the state of the row wanted instead of selecting them?


You can add the keyword form_action to the ir.action and it will be available in the “Launch Action” menu.

Buttons on the list that are available for all the selected records are also in the “Launch Action” menu.

Thanks Cédric, I’ve managed to create a Wizard that I see in the “Launch Action” menu, but I don’t know how to get only the rows marked with a tick by the user and not all the rows of the model ?

Actions are always run on the selected record. So in your wizard, the records attribute contains the selected records.

Perfect thanks a lot !

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.