Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I needed to get the modules dependecies showing all levels
I wrote the following code that shows only the first level, assuming that I have the list of modules in the list 'modules'
I tried to show all dependencies using a recursive function with no success, could anyone help me accomplishing this
Here is my code
Try the below code:-
ret = 
fl = main_path+m+'\\__openerp__.py'
with open(fl,'r') as f:
ret = eval(f.read())['depends']
main_path = 'D:\\openerp-7.0-latest\\openerp-7.0-20140804-231303\\openerp\\addons\\'
modules = [
for m in module:
for f in get_dep(m):
print ' '+f
vals = [display(ret) for _ in range(3)] # It prints 3 level based on your need increase the value
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/19/15, 1:20 AM|
|Seen: 839 times|
|Last updated: 6/10/15, 5:52 AM|