- Introduced a new product details layout in `product_details_page.xml` with styled elements and hidden original Odoo components for a premium look. - Enhanced the product form view in `product_views.xml` to include a new field for marking popular deals. - Updated the configuration settings view in `res_config_settings_views.xml` to add a delivery option toggle during checkout. - Reorganized the shop page layout in `shop_page.xml` to include dynamic categories and attributes, along with a new arrivals section. - Created a new snippets file `snippets.xml` for potential future custom drag-and-drop blocks. - Added a script in `parse_content.py` for parsing specific content from a markdown file.
25 lines
700 B
Python
25 lines
700 B
Python
from odoo import api, SUPERUSER_ID
|
|
|
|
def uninstall_hook(env):
|
|
"""
|
|
Synchronized uninstallation: When Dine360 Restaurant Suite is uninstalled,
|
|
automatically trigger uninstallation for all its core sub-modules.
|
|
"""
|
|
modules_to_uninstall = [
|
|
'dine360_dashboard',
|
|
'dine360_restaurant',
|
|
'dine360_theme_chennora',
|
|
'dine360_kds',
|
|
'dine360_reservation'
|
|
]
|
|
|
|
# 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()
|