Skip to Content
Menu
This question has been flagged
1 Reply
1475 Views

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
Discard
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
Discard
Author

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

Related Posts Replies Views Activity
2
Dec 23
12006
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
980