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