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