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

27 lines
777 B
Python

from odoo import api, SUPERUSER_ID
def uninstall_hook(env):
"""
Synchronized uninstallation: When Dine360 Shivasakthi Restaurant Suite is uninstalled,
automatically trigger uninstallation for all its core sub-modules.
"""
modules_to_uninstall = [
'dine360_dashboard',
'dine360_restaurant',
'dine360_theme_shivasakthi',
'dine360_kds',
'dine360_reservation',
'dine360_theme_reservation',
'dine360_table'
]
# Search for these modules if they are installed
modules = env['ir.module.module'].search([
('name', 'in', modules_to_uninstall),
('state', '=', 'installed')
])
if modules:
# Mark modules for uninstallation
modules.button_uninstall()