d464ba7c7ee6dcca8fca7beb97829a5ed48f479d
As `download`, the `downloadFile` util is able to perform an `XMLHttpRequest` (`GET`) if it is provided with only an url. Change the return value of `downloadFile` in that case to a `Promise`, to match the behavior of `download`. Previously, the `XMLHttpRequest` was returned to allow the caller to modify the headers of the request, but that feature was not used. Extract the configuration of the `XMLHttpRequest` for `download` to a separate function so it can be used for both `download` and `downloadFile`. It will set the `responseType, onload, onerror` properties. Tracking: - usage of `downloadFile` in Knowledge introduced in [1]. [1]: https://github.com/odoo/enterprise/pull/47056 task-3517796 closes odoo/odoo#137893 X-original-commit: 787f207f9882807598273c34296d0c1d8081f1b5 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%