diff --git a/addons/purchase_requisition_stock_dropshipping/__manifest__.py b/addons/purchase_requisition_stock_dropshipping/__manifest__.py index 838a91d834c..97fc01e3b37 100644 --- a/addons/purchase_requisition_stock_dropshipping/__manifest__.py +++ b/addons/purchase_requisition_stock_dropshipping/__manifest__.py @@ -18,4 +18,5 @@ and link with originating sale order. ], 'installable': True, 'auto_install': True, + 'license': 'LGPL-3', } diff --git a/odoo/modules/module.py b/odoo/modules/module.py index 3d10d70ee8d..32af0b256ab 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -330,7 +330,6 @@ def load_information_from_description_file(module, mod_path=None): 'description': '', 'icon': get_module_icon(module), 'installable': True, - 'license': 'LGPL-3', 'post_load': None, 'version': '1.0', 'web': False, @@ -355,6 +354,9 @@ def load_information_from_description_file(module, mod_path=None): with tools.file_open(readme_path[0]) as fd: info['description'] = fd.read() + if not info.get('license'): + info['license'] = 'LGPL-3' + _logger.warning("Missing `license` key in manifest for '%s', defaulting to LGPL-3", module) # auto_install is either `False` (by default) in which case the module # is opt-in, either a list of dependencies in which case the module is