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.

1

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

By
John
on 12/12/14, 8:08 PM 1,924 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?

0
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.

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
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).

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: 12/12/14, 8:08 PM
Seen: 1924 times
Last updated: 11/30/15, 2:18 AM