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
1007 B
Python

import urllib.request
import re
from http.cookiejar import CookieJar
cj = CookieJar()
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
opener.open('http://localhost:8069/web/login?db=dine360_restaurant_antalya')
try:
resp = opener.open('http://localhost:8069/reservation')
html = resp.read().decode('utf-8')
print('STATUS:', resp.status)
print('HTML length:', len(html))
# Check if CSS variables exist in the HTML (which means QWeb loaded them from website)
contains_variables = '--res-primary-color:' in html and '--res-secondary-color:' in html
print('HTML contains custom theme CSS variables:', contains_variables)
# Print the style blocks found in HTML
style_blocks = re.findall(r'<style>.*?</style>', html, re.DOTALL)
for block in style_blocks:
if '--res-primary-color' in block:
print('Found custom :root variables style block:')
print(block)
except Exception as e:
print('ERROR:', e)