تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6969 أدوات العرض

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.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
503
1
مارس 15
4247
3
مايو 25
1515
3
نوفمبر 24
8282
2
أغسطس 24
1700