تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2883 أدوات العرض

 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!

الصورة الرمزية
إهمال

Can you please show your code?

أفضل إجابة

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?