Skip to Content
Menú
This question has been flagged
1 Respondre
1676 Vistes

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
Descartar
Best Answer

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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
2
de des. 23
14521
0
d’oct. 23
33
3
d’oct. 23
788
1
d’oct. 23
569
1
d’ag. 23
2307