I have a tree view listing todo records. I need to add a button that performs an action, such as deleting all entries marked as done, e.g. clear_completed(cr, uid, ids, context) (ids is not really needed in this case).
I believe this is done through a Window Action (Configuration > Customization > Low Level Objects), but exactly how do you make this action available in the client’s form?
XML solutions are also welcome.
You need a wizard to do that.
Selected entries are in
context['active_ids']variable.You can take the account.invoice.confirm wizard as example. See also the related XML