Note to self: you can use this script in odoo shell:
from odoo import modules
from collections import defaultdict
installed_modules = env['ir.module.module'].search([('state', '=', 'installed')])
modules_with_path = [(m.name, modules.get_module_path(m.name).split('/')[-2]) for m in installed_modules]
d = defaultdict(set)
for item in modules_with_path:
d[item[1]].add(item[0])
for k, vals in sorted(d.items()):
print("\n%s:" % (k,))
print(" modules: [")
for mod in sorted(vals):
print(" %s," % (mod,))
print(" ]")
Note to self: you can use this script in odoo shell:
Will print something like: