883f2e25198c49704cbec3cc75eb2d2cc1c4fac2
Before this commit, typing a query in the search input of the media dialog would output a lot of undraw images (15), making some noise and making the unsplash results (that are fetched 10 by 10) less visible. First, the number of fetched attachments was reduced from 30 to 10 when converted to owl in [1], for no valid reason. This commit adds a new NUMBER_OF_RECORDS_TO_DISPLAY value for better control over the loaded images, and reverts it to 30. Then, the /web_editor/media_library_search endpoint does not take any limit param. Therefore, it was loaded with all the results as they were returned. Now, a new NUMBER_OF_MEDIA_TO_DISPLAY variable is introduced to load the 10 first results instead of all of them. This way, the search results are organised as following: - NUMBER_OF_ATTACHMENTS_TO_DISPLAY (30 for now) attachments, - NUMBER_OF_MEDIA_TO_DISPLAY (10 for now) media (undraw, ...), - NUMBER_OF_RECORDS_TO_DISPLAY (30 for now) unsplash images. These values can be changed to adjust the search (it may be better to have more unsplash images than undraw images). [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-3060679 X-original-commit: bc4fe60bcebd3e47f206c911526784a88fd520d9 Part-of: odoo/odoo#118556
…
…
…
…
…
…
…
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%