Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm designing product specification reports (for a food industry) and I have the following issue:
There are several fields in the variant (aka product.product) that will be the same among ALL product variations. eg. use_time, track_production.
The product.product object inherits (decorates actually) the product.template object so everything in the latter is inherited to the former.
What would make sense is to move those fields from product.product to product.template so as to not re-enter the same information for each variant, make updating and reporting easier.
The questions are:
Will writing a module that simply adds the fields in product.template collide with the field definitions in product.product? (I don't know how openERP handles decorator inheritance)
If so, is there a way to remove fields from product.product module (from code in a module, that is)
A workaround would be to add an onchange function for each of these fields so when one gets updated it updates all the other products that are based on the same template, but that beats the whole meaning of product.template + is error prone.
PS. We are running v7
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 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/8/15, 9:04 PM|
|Seen: 518 times|
|Last updated: 5/12/15, 1:29 AM|