89ce9f9ab5b8db148c273f70be0a06c768892566
Issue: 1- Website editor > Set shape on image 2- Crop > shape is reapplied on the croped image 3- Change another option (e.g. image width) 4- Undo > image will be shown cropped but without any shape applied on it. In the current code we apply shapes on cropped images using the event listener 'ImageOptimize > _onImageCropped', so in 'ImageTools', the 'crop()' option method will record the "crop" action but the step where the shape is added is lost. (See: SnippetOptionWidget > _onUserValueUpdate()). The goal of this commit is to merge the 'ImageTools' and 'ImageOptimize' in one option so we can simply use shape related methods to apply shapes when the crop() & resetCrop() methods are called. This way, the step to record will be a "cropped image with a shape on it" instead of just a "cropped image". task-2628964 closes odoo/odoo#80208 X-original-commit: 7c17d78fbdbb64b1aa5b55f78d3202a64a85ed2f 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%