ec2bc5e47c5a259d41b4f273d98ad5fbe073f89c
When trying to replace an image with the media dialog, there is first a click on the image, which activates the options of the image, and then a double-click, opening the media dialog to choose the new image. However, the media dialog does not wait for the image options to be completely initialized before opening. This behaviour is in general not problematic but if it happens quickly enough, in a tour for example, it might cause a traceback. This happens because the renderings (in `_renderCustomXML`) of the image before and after replacing it happen too closely, making the first one lose the reference to the image parent. This commit fixes this issue by waiting for the options to be fully initialized before opening the media dialog, that is, by adding an empty action in the mutex and waiting for it to complete. runbot-10692 closes odoo/odoo#108738 X-original-commit: 7667ba149aaf179f430615c4aba4b963d1d167c6 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%