How to reload form in a client plugin

I would like to create a client plugin, which can create a snapshot with flameshot command and save as attachment,

I would like to reload form after attachement saved, try below code but not success, any suggestion?

    document_model = data['model']

    # Reload the form
    a = Form(document_model, res_id=data['ids'][0])

The plugin interface does not provide access to the form from which it is launched.
But maybe the API could be improved by processing the return value as a client action.

I think this is a very useful feature :slight_smile:

Here is Support client action as return of pluggin (#13045) · Issues · Tryton / Tryton · GitLab

Wow, good news! thanks