İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1677 Görünümler

I would like to make the following modifications to the existing Odoo addon

There's module A (main addon) with ModuleA class, which has _get_information method

There is a module B with ModuleA class, inheriting from main ModuleA class (with _name parameter), overriding _get_information method, and calling parent _get_information method with super(). _get_information within it's own _get_information method

I created module C with ModuleA class, which inherits Module B's ModuleA class and overrides it's _get_information method, but for some reason module B's _get_information method is used, not mine

How this should be done right?


Avatar
Vazgeç
En İyi Yanıt

Hello Dmitry,

Have you added module in depends?

If not then add module in depends (module B and moduleA).

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Vazgeç
Üretici

Yes, both module A and B are in “depends” of my module C

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ara 23
14523
0
Eki 23
33
3
Eki 23
788
1
Eki 23
569
1
Ağu 23
2307