import logging logging.getLogger('odoo').setLevel(logging.CRITICAL) module = env['ir.module.module'].search([('name', '=', 'mrp_lot_mix')]) if module: print(f"Module: {module.name}, State: {module.state}") else: print("Module mrp_lot_mix not found")