diff options
| author | Aurélien Warnon <awa@odoo.com> | 2018-09-26 11:45:00 +0200 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2018-09-26 15:08:18 +0200 |
| commit | 326dabce09d634e029e68281694ec695fa665666 (patch) | |
| tree | f7e1e482c7a6ae31adfe9f00527a12079b68eb16 /addons/website_sale_comparison/data | |
| parent | ee766ab93343f7920558be3e99cdd693b54d07ee (diff) | |
[IMP] product,(website_)sale: Product configurator naming/cleanup
Targets commit d3530eb07e24278117ab396ecb86a59deecc312d
Purpose
=======
[Follow up AL review]
Code cleanup and some improved models naming for the product configurator feature (see targeted commit).
Mostly changes the "product.attribute" related models.
Updated models:
- "product.product.attribute.value" to "product.template.attribute.value"
- "product.attribute.filter.line" to "product.template.attribute.exclusion"
- "product.attribute.line" to "product.template.attribute.line"
Updated fields:
- [sale_order_line in sale/sale.py] "product_custom_variant_values" to "product_custom_attribute_value_ids"
- [product_template_attribute_value in product/product_attribute.py] excluded_for is now a o2m instead of a m2m
- [product.attribute in sale/product_product.py] "create_variant" field is now a Selection with "no_variant" (old false), "always" (old true), "dynamic" (new value)
- [product in product/product.py] "product_attribute_value_ids" to "product_template_attribute_value_ids"
Diffstat (limited to 'addons/website_sale_comparison/data')
| -rw-r--r-- | addons/website_sale_comparison/data/website_sale_comparison_demo.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_sale_comparison/data/website_sale_comparison_demo.xml b/addons/website_sale_comparison/data/website_sale_comparison_demo.xml index 3c48233133e..3e2b9c7d682 100644 --- a/addons/website_sale_comparison/data/website_sale_comparison_demo.xml +++ b/addons/website_sale_comparison/data/website_sale_comparison_demo.xml @@ -49,17 +49,17 @@ <field name="attribute_id" ref="product_attribute_8"/> </record> - <record id="product_attribute_line_1" model="product.attribute.line"> + <record id="product_template_attribute_line_1" model="product.template.attribute.line"> <field name="product_tmpl_id" ref="product.product_product_6_product_template"/> <field name="attribute_id" ref="product_attribute_1"/> <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_1')])]"/> </record> - <record id="product_attribute_line_7" model="product.attribute.line"> + <record id="product_template_attribute_line_7" model="product.template.attribute.line"> <field name="product_tmpl_id" ref="product.product_product_6_product_template"/> <field name="attribute_id" ref="product_attribute_7"/> <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_7')])]"/> </record> - <record id="product_attribute_line_8" model="product.attribute.line"> + <record id="product_template_attribute_line_8" model="product.template.attribute.line"> <field name="product_tmpl_id" ref="product.product_product_6_product_template"/> <field name="attribute_id" ref="product_attribute_8"/> <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_8')])]"/> |
