- 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.
27 lines
777 B
Python
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()
|