tumashu
(tumashu)
February 19, 2024, 7:09am
1
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])
a.sig_reload(test_modified=False)
ced
(Cédric Krier)
February 19, 2024, 8:54am
2
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.
tumashu
(tumashu)
February 19, 2024, 9:30am
3
I think this is a very useful feature
ced
(Cédric Krier)
February 21, 2024, 7:44am
4