Hi all odoo developer, my issue is I make one class that inherit from class calendar event (type delegation inheritance). When I want some function work as in calendar I need to copy code from class calendar event to my class.
Why I need to copy like this if it is inherit already?
Can I have another way to do it?
Thank in advance for your kindness!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
2884
Vues
when using delegation inheritance, methods are not inherited, only fields.
https://www.odoo.com/documentation/12.0/reference/orm.html#delegation
Hi @Jigar Patel, so I need to copy it and past to my code right? Is there any good solution than this?
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire
Can you please show your code?