I was looking for this online with no luck so I had to develop itā¦ :woohoo: :woohoo:
I post my solution here just in case anyone needs itā¦
Itās a very simple solution and it has some hardcoded strings. It also works for a custom HR module Iām developing, so you can see how to adapt it to work with any moduleā¦
Itās just a first version and Iām sure it can be improved here and there, butā¦ I will keep working on it until I make a pull request on thisā¦
This widget composes a link to a download multiple files javascript with the document ids separated by a | character.
For now, here you haveā¦
-
You have to add the widget on the Accounts documents subpanel topButtonsā¦
2 => array ( āwidget_classā => āSubPanelTopExtractDocumentsButtonā,
āsubmoduleā => āAccountsā,
ārelationshipā => ādocumentsā, ), -
Copy the widget on custom/include/generic/sugarWidgets
-
Copy the javascript into custom/modules/Documents
And thatās it, enjoy it!