Otto difference between the model and product.template of product.product

product.product and product.template two models of field is very consistent, in particular pay attention to what development?

First, product.template product definition is not a real place, where it is the product template. As long as you create the product (product.template), will create the same product (product.product) in.

It contains a list of (attributes) of the main products and product variants.

Product.product model and the actual product there, which variants may as a separate product. When we create a sales order or purchase order, the actual use of the product is not product variants. this point is very important.

Say that the product attributes Product Attributes. To create product variants, we need to add products to the product properties, the product will automatically create product variants.

For example, we created a product called "A computer" products, by default, in product.template and product.product in will have this product. If we need to add variables for this product, you will need to create and add attributes to a specific property. If we have created as an attribute memory, 16 GB and 32 GB as the property value. So, A computer will have two variants of the product.

Specific product attribute definitions, we can find the product in the product category configuration there - property, product - the value of property, where the definition of specific attributes.

Guess you like

Origin www.cnblogs.com/excelserver/p/11371787.html