On your module you should define a new action windows which accepts Eval(‘active_ids’) as value of it’s domain. This will be filled by the client with the ids of the cureent parties.
Then you should use the form_relate keyword to add this action available on the relate dropdown (this is how the option of your image is called)
There a lot of examples on the source code of the tryton modules.