Odoo Help


[8.0] Backend - When to inherit product.product v. product.template

on 12/12/14, 8:08 PM 3,246 views

I'm not very clear on what the difference between product.product and product.template is.  Am I correct in saying that product.product is created from a product.template? 

It seems to me that product.product is a 'child' (so to speak) of product.template.  Do changes in product.template fields propogate to its children?  Does any change to product.product propogate to product.template?

Alejandro Perez Cosio
On 12/13/14, 8:12 AM

When you create a product from the menu, what you inmediatelly see is the product template.
If you go to the tab "variant", you will see all products variant related to that product (variants = product.product, yes product.product is a children of product.template).
By default when you create a product.template, a default variant with some of the template values is created.




| 5 3 6
Jakarta, Indonesia
On 12/15/14, 2:32 AM

John, you are right that product.product is a child of product.template.  Changes in product.template fields does propagate to its children (all products that has the same template).  Changes to product.product does not propagate to product.template.

You inherit product.template if you want the property you are adding to affect a group of product variants (product.product).  You inherit the product.product if you want the property that you are adding to affect only one product variants (meaning each product variant can have different value).

Note that I did not put changing in the above paragraph because once a field is defined in product.template, it better stays there (and vv).

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/12/14, 8:08 PM
Seen: 3246 times
Last updated: 11/30/15, 2:18 AM