a1aa2db7c5d14807f480d1552a3f94c1faf69dce
Before this commit, when opening the media dialog, the optimized images would be fetched too. An optimized image is an image related to an original one which received some modification (crop etc). Those optimized images are hidden by default, and can only be shown when toggling the "Show optimized" option, which can be shown only in debug mode. So, fetching those images outside debug mode is: 1. Useless, as we don't do anything with those and never show them 2. Buggy sometimes, as a full patch of "Load more" images could be composed of only optimized images, meaning the "load more" will actually look like it did nothing, as all received images are (and will remain) hidden. There is a tiny exception: if the edited image is an optimized one, we still need to fetch it's attachment so we can show this image in the media dialog as selected. This fix thus filter out all the optimized images (except the one from the explained exception) from the `search_read()`. opw-3372811 closes odoo/odoo#127853 X-original-commit: 24177b5e2b56a94a51ac4b922d555beda9347611 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by: Romain Derie (rde) <rde@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%