eded9a301c9ee1a574cdfb0dd369fa2877d56539
*: web_unsplash Before this commit, if we were in debug mode, when we tried to replace or add an image, a traceback appeared when selecting an Unsplash image for the first time or when uploading an image of size 0 (also for the first time). Note that once the traceback was closed, it did not reappear until the page was refreshed, but the progress bar was not displayed anymore. It happened because in debug mode, there is a validation of the different owl components props and some props of the `ProgressBar` component were not correctly set when adding Unsplash images or empty image files, causing the props validation to fail. Those props definition were incorrectly added with [1]. The traceback was not reappearing because the `UploadProgressToast` component (= the parent of `ProgressBar`) has been destroyed and so the props validation was not done anymore since the components were not there. This commit fixes these issues by correctly setting the `ProgressBar` props and by adding default props, in order for them to always have a value when omitted. Steps to reproduce: - Activate the debug mode. - In edit mode, drop the Text-Image snippet. - Double-click on the image to replace it. - Type something in the search bar and select an Unsplash image or upload an empty image file. => A traceback appears. [1]: https://github.com/odoo/odoo/commit/886f3de768b647f4b402c97098abf274d6258f75 opw-3413299 closes odoo/odoo#132377 X-original-commit: 425dfb07f21288caf56bceea3a86e0b7ecac4a91 Signed-off-by: Quentin Smetz (qsm) <qsm@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%