Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Odoo v8: Relationship between product.product and product.template tables

By
Elisa Pagliuca
on 7/11/16, 10:14 AM 338 views

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 ?


0

Axel Mendoza

--Axel Mendoza--
10318
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 7/11/16, 11:43 AM

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

0
Elisa Pagliuca
On 7/11/16, 11:08 AM

Hi,  

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

What happens when I deactivate a variant?

Kind regards

Elisa

0
le_dilem
On 7/11/16, 10:45 AM

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.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/11/16, 10:14 AM
Seen: 338 times
Last updated: 7/11/16, 11:44 AM