641206cd824aea8f3d3d03de23bd3de0af818564
In a sale order, an error is raised when selecting a product (`product.template`) that has an archived variant if the product has a single active attribute Steps to reproduce: 1. Install Sales 2. Create a new product 'TEST' 3. Add the attribute 'Legs' with values 'Steel' and 'Aluminium' 4. Create a new sale order for any customer with product 'TEST' and variant 'Steel' and confirm it 5. Open the form of product 'TEST', remove the attribute 'Legs' and add the attribute 'Color' with values 'White' and 'Black' 6. Create a new sale order and try to add the product 'TEST', an error is raised Solution: Exclude `product.template.attribute.value` from the ptavList only if it is present in the ptavList Problem: If a product has an archived variant that uses the same attributes than an existing active variants except one, we will try to exclude the different attribute but because it has been archived, it is not present and cannot be excluded. opw-3420616 closes odoo/odoo#129012 X-original-commit: 907aba0f54f65788c78c1370a573fbe9b69be8c5 Signed-off-by: Guillaume Merlin (megu) <megu@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%