Odoo Help


Keeping product_template and product_product the same

Gediminas Lisauskas
on 11/12/15, 6:59 AM 530 views

When there is only one variant I want my custom fields to be equal in template and variant itself. What I tried is overriding write and create methods in product_template and setting there needed values in product_product.

This approach is working fine. The problem is when I override the same methods in product_product. Odoo crashes because of endless recursion. I understand why but don't know how to fix it. Maybe somebody could hive me some clues?

Or is this approach bad by itself?

I see the needed functionality in weight field - it updates in both ways. But I don't quite understand how it is done because I am quite new to python and odoo.

Thank you for your time.

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 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: 11/12/15, 6:59 AM
Seen: 530 times
Last updated: 11/12/15, 6:59 AM