diff --git a/odoo/scripts/modules.py b/odoo/scripts/modules.py index dd3a7fa..7cc58b6 100644 --- a/odoo/scripts/modules.py +++ b/odoo/scripts/modules.py @@ -11,6 +11,8 @@ def main(): parser = common.parser(parser) parser.add_argument('-db', '--database', type=str, required=True, help='the targetted database') + parser.add_argument('-dbu', '--database-user', type=str, default='admin', + help='the odoo database admin username') parser.add_argument('-dbpw', '--database-password', type=str, required=True, help='the odoo database admin password') @@ -26,7 +28,7 @@ def main(): # Connection odoo = common.connection(args) - odoo.login(args.database, 'admin', args.database_password) + odoo.login(args.database, args.database_user, args.database_password) # Modules actions Module = odoo.env['ir.module.module']