Alaguraj0361 42ff2972e4 Add custom product details layout and shop page enhancements
- 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.
2026-06-08 19:46:45 +05:30

25 lines
715 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'
]
# 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()