odoo-dine360-restaurants/addons/check_stuck_modules.py
Alaguraj0361 dd4e83d2da Add Dine360 Table Reservation Theme Customizer
- Introduced a new module for customizing the Table Reservation theme with primary and secondary branding colors.
- Updated the __manifest__.py to include dependencies and module details.
- Created models for website settings to manage theme colors.
- Added views for configuration settings and menu items for easy access.
- Enhanced reservation templates to apply custom styles dynamically.
- Implemented a verification script to check if the theme is applied correctly.
- Updated docker-compose.yml to change the exposed port for the Odoo service.
2026-07-03 22:52:18 +05:30

19 lines
568 B
Python

import odoo
from odoo import api, registry
odoo.tools.config['db_host'] = 'db'
odoo.tools.config['db_user'] = 'odoo'
odoo.tools.config['db_password'] = 'odoo'
db_name = 'dine360_restaurant_testing5'
print(f"Checking modules on: {db_name}")
try:
reg = registry(db_name)
with reg.cursor() as cr:
env = api.Environment(cr, odoo.SUPERUSER_ID, {})
modules = env['ir.module.module'].search([('state', '=', 'installed')])
for m in modules:
print(f" Installed module: {m.name}")
except Exception as e:
print(f" Error: {e}")