-
- Downloads
[FIX] product: variant exclusion not taken into account
Steps to repoduce:
- Go to Sales - products
- Create a product
- Add variants (3 attributes and 2 values each) Total is 8 variants.
- onfigure variants: Select 1 attribute and exclude it for 1 variant (for example: exclude for size 12x12)
-> the number of variants remains at 8. The one that is excluded is still visible in the Product variants tab.
Solution:
When an exclusion is created, archive all the not-possible-combination.
OPW-2729329
closes odoo/odoo#83427
Related: odoo/enterprise#24251
Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
Showing
- addons/product/i18n/product.pot 7 additions, 0 deletionsaddons/product/i18n/product.pot
- addons/product/models/product_attribute.py 4 additions, 1 deletionaddons/product/models/product_attribute.py
- addons/product/models/product_template.py 15 additions, 9 deletionsaddons/product/models/product_template.py
- addons/product/tests/test_product_attribute_value_config.py 23 additions, 5 deletionsaddons/product/tests/test_product_attribute_value_config.py
- addons/product/tests/test_variants.py 105 additions, 0 deletionsaddons/product/tests/test_variants.py
Loading
Please register or sign in to comment