2b832269f474d9b08c7c6cd827e5f78ebcfafeca
The changes concern the following modules: - sale - sale_product_configurator - website_sale - website_sale_product_configurator When optional products are enabled and a user adds an item to the cart, the modal popup does not allow further modifications to the main product based on its template. If the user wants to change the color or the material, they have to close the popup, modify the product and open it back up. The same is applied when Add to Cart is active, and the user cannot configure the product at all after clicking the add to cart button. This change will make it possible to change the product variants without having to close the modal, and configure the product when using the "Add to cart" button when it's enabled. The added configuration step is needed for some cases like the following: 1. When adding a product that had variants directly from the /shop page before, the first variant was added by default and configuring it was impossible without explicitly going on the product's page and configuring it from there. This behaviour made no sense, and it's the reason the "optional products modal" (which should no longer be called that) is opened when the product is not configured even if there are no optional products. 2. When going through the product's page, and there are optional products enabled for the product getting configured, then it's nice but not necessary to be able to configure the product further while choosing and configuring the optional products. This doesn't add an extra step in any case, it just makes it possible to still configure your product in the modal. 3. If there are no optional products, the configuration made on the product's page is taken into account and the product is directly added to the cart without opening the modal, which is the same behaviour as previously. Only one modal is shown, depending on the situation: - For the website flow, if the product is not configured and has variants or has optional products (or both), a popup shows that allows for configuration + choosing and configuring optional products. - For the sales flow, there was already a configuration popup, so the optional products modal is only shown when there are optional products and replaces the first instead. Some tests were adapted to function with the new product configuration modal: - The steps checking for the text mentioned above are removed - Triggers were adapted to the modal for products that were previously added to cart with their default variant - Various other small adjustments task-2541663 closes odoo/odoo#73086 Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.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%