What is the need for two different tables for Product Master in Odoo ? How product.product and product.template differ ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Odoo has two models/tables for products because of product variants:
- product.product contains variant level information.
- product.template contains information that is same to all variants.
You can use product variants in Odoo by turning on "Products can have several attributes, defining variants" in Sales / Settings. With variants the product.template contains the main product (e.g. T-Shirt) and product.product contains the variants (e.g. T-Shirt size M, T-Shirt size L,...).
If you do not use variants, these two models and tables have almost the same content.
You can find more information on Odoo product variant from https://www.odoo.com/documentation/user/10.0/ecommerce/managing_products/variants.html.