diff options
| author | jvm-odoo <jvm@odoo.com> | 2020-07-16 13:02:16 +0000 |
|---|---|---|
| committer | Jason Van Malder <jvm@odoo.com> | 2020-07-27 17:27:14 +0000 |
| commit | 054894c35c2d958d72351696d7f233d09fee1c36 (patch) | |
| tree | 2d4559bb12b4b8728a4acc106be68f3286ea6879 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 8d96f92bb1fffdf1b2aa8188486078d1032ec8f6 (diff) | |
[FIX] product: fix dynamic product variant archiving
Issue
- Install Sales with Product Configurator
- Create a product with 2 dynamic variants:
- Color: blue, red
- Size: S, M
- Create a quotation with that product (any variant)
- Sales > Products > Products Variants
Your product variant is there
- Modify your product template and add "green"
to colors
- Sales > Products > Products Variants
Your product variant is archived
Cause
The logic which determines which variant
should not be archived is only applied
on products that don't have dynamic variants
See https://github.com/odoo/odoo/blob/820fe9a025e34e81368a189ee295b4abcf9fcbda/addons/product/models/product_template.py#L576
Solution
Do a separate logic for dynamic variants that doesn't compute
all possible combinations.
But being sure that it:
- doesn't archive when adding/removing a value
to an existing attribute line
- archive when adding/removing a new attribute line
OPW-2293346
closes odoo/odoo#55016
X-original-commit: 8517fdfa2605e8d15f5e38f2074ece7ba543d56b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
