Odoo Help


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.


How does product.product vs product.template work in v8?

Julian Solorzano
on 5/5/15, 12:21 PM 620 views

In prior versions there was no action to open the product.template model, just the product.product. In v8 there are two actions, one shows product.template and one shows product.product. Several fields have been moved to a product.template view. For what I've seen if I want to extend the product view I have to be careful which fields I'm referencing, if those on the template or on the product. For example if I want to add a field after the "list_price" field, I must inherit the template view and thus this new custom field must be necesasrily defined in the product.template model or it won't work ("custom field" doesn't exist"). Yet I see that from the default product.template view I can see the default_code which is a product.product field.

Furthermore if I want to have some on_change actions both in the product_template and the product_product models it seems I have to define these methods in both models.

Am I missing something regarding all this? I seem to not understand howthe product.template-product.product type of inheritance really works.

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)


Asked: 5/5/15, 12:21 PM
Seen: 620 times
Last updated: 5/5/15, 12:23 PM