Currently, there is a download function exported that expects data and a url.
You would provide a controller url and some data to send, and the result would be downloaded.
However, it may be useful to sometimes trigger a download on the spot if there is no need to reach for a controller. Like having some json data and download it.
The code already existed, so this function is now exported as `downloadFile`.
closesodoo/odoo#118227
X-original-commit: cd9a5d491715247636d95c9f768ffc42616f4b47
Related: odoo/enterprise#39564
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>