Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1678 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
2
pro 23
14523
0
říj 23
33
3
říj 23
788
1
říj 23
569
1
srp 23
2308