diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-08-11 10:41:39 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-08-14 11:10:43 +0200 |
| commit | 5c2380e9f45d5c0df4a29a6b9f84114798b3bcb2 (patch) | |
| tree | 494689d93e9f33f05702addff9ee59387a15db8e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 8102698dfdcdb72d52b9ac8945b07448641e76f4 (diff) | |
[FIX] product: create variant
1. Create an attribute with create_variant boolean un-ticked (ie. don't
create variants from these attributes). For example 'Test Attribute'
2. Create attribute values related to the above attribute. For example
'Test 1', 'Test 2', etc
3. Create a product (product.template) and assign an attribute (eg.
Color: black and white)
4. On one of the product variants, add one of the attribute values for
the attribute we've created in step 2 to the attribute_value_ids
field to allow for filtering by product attributes that do not create
variants.
5. Go back to product template and add another attribute value to an
attribute where create_variant is True (eg. Memory: 16 GB)
6. Our value from attribute_value_ids is gone, and the product has been
deactivated
When attributes are set with create_variant is False, they are
obviously not used to create variants. Therefore, when we are looking
for existing variants, we should filter out these attributes.
Partially closes #18682
opw-762743
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
