73ac78f0725674c6cbcace48ff231234936f4456
Even if only accessible when writing some custom code, the path option of Profiler looked a little dangerous from a security point of view, since this option allows to write the result of the collector anywhere. This shouldn't be a problem, since Profiler shoudn't be accessible inside a safe_eval() and the path param cannot be user defined, but this is still a risk. An alternative option would have been to give a file descriptor instead, so that the user must have access to `open()`, which is unlikely inside a server action. This alternative has some disadvantages, though, because the file descriptor should be given when creating the profiler, or at least before `__exit__()`, removing the possibility to add the number of entries in the filename. This commit proposes another solution: add a generic way to output the profiler as a json text. The result can thus be saved the way the developer chooses. A utility method format_path() will help to format path the same way the profiler did before this change.
…
…
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%