d98c0af075ab524cfe83af759737c3b3da952b67
If a given template T has two attributes lines: * standard attribute (instant creation): one value * no_variant attribute (never create a variant for it): one value It will have one automatically generated variant V, which will be automatically selected on the sale order line if you chose the template T. If optional product(s) are added on the template T, the configurator will open to choose the optional products. But in this situation, the main product was shown as "Option not available" on the configurator. This is wrong since there is the valid variant V that we can use. This is caused by a behavioral change in 16.0, we saved the variant V directly on the sale order line, before opening the configurator. Previously, the values were applied to the line after the configurator was closed (if there were optional products). As the values were applied before the call to `_openProductConfigurator`, the product.template.attribute.value of V (the standard one, not the no_variant) is given to the wizard opening, disabling the automatic fallback that previously gave the two expected ptav's (the standard AND the no_variant one), leading to an incomplete combination, which was considered invalid. This commit restores the previous behavior, by setting the product on the line only if there is no optional products. If there are, everything will be correctly managed when the configurator is closed. opw-3355216 closes odoo/odoo#131147 X-original-commit: 902c7112c75841ede560c51d54e12e9cf809ee8c Signed-off-by: Victor Feyens (vfe) <vfe@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%