Product and product template in Odoo 10

孤者浪人 提交于 2019-12-10 18:56:07

问题


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.



来源:https://stackoverflow.com/questions/50014713/product-and-product-template-in-odoo-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!