Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6977 มุมมอง

Hi All, 

Could someone explain me which is the relationship between the tables product_product and product_template? 

Is possible to have records in product_template tables that has no reference in product_product?

If a product has only 1 variant, and I remove the flag active from the variant , should the product be deactivetd too or it could remain with none active variant ?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The product.template is used as a base for product variants that are product.product and for a product.template record you will get at least 1 product.product variant that it's actually what you use to store, sell, buy... product.product records

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi,  

So, products with no variants are not allowed by Odoo? 

What happens when I deactivate a variant?

Kind regards

Elisa

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi

In the table you product_product key product_tmpl_id 'many2one' product_template The fact of creating a recording that automatically creates product_template in product_product

if you have several alternatives you're not going to have fun a modified field by one.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
506
1
มี.ค. 15
4255
3
พ.ค. 25
1521
3
พ.ย. 24
8296
2
ส.ค. 24
1706