b8176448c3e2b284fb094218ed88afe30e83e69a
When uploading an image in the editor, we go through `_attachment_create`, which sets the image to public if `res_model` is `ir.ui.view` (the default if none was passed). Because of a wrong reference to the editable DOM element (which contains the `res_model` as data), when instantiating the media dialog, we were passing no `res_model`. As a result, when saving an attachment, no `res_model` was passed to `_attachment_create` and the attachment was made public. Attachments in the backend should not be public and should be linked to the proper model. task-2759034 closes odoo/odoo#85132 X-original-commit: 5b664f0c04433091c3d6f85f245887d1808c308f Signed-off-by: David Monjoie (dmo) <dmo@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%