1132e2b3956a4c07af130f763fba134dcee6c953
Steps to reproduce the issue: - Install "eCommerce" module - Create 2 attributes with 'Variants Creation Mode' is Never and one of them should have at least 2 values. - Create a product and add the two attributes as variants and one of them should have at least one value - Go to configure variant and select the first attribute and exclude one or more values from the second variant - Go to the website and change the variant to a value from the one you excluded and add to the cart directly (you should be fast). Issue: Product with a not possible combination is added to cart. Cause: Not checking if the combination is possible before adding to cart. Solution: When adding product to cart, if element with class ".js_add_cart_variants" is present and have children, trigger _getCombinationInfo to retrieve last combination info, then add it only if the combination is possible. opw-2569109 closes odoo/odoo#80134 X-original-commit: 7667d4ea32f758d062d0a0820dfc5bd6d0d084b4 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Nasreddin Boulif (bon) <bon@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%