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

29 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form_inherit_theme_reservation" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.theme.reservation</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//block[@id='website_info_settings']" position="inside">
<setting string="Table Reservation Theme" help="Configure custom styling colors for the Table Reservation system" id="theme_reservation_settings">
<div class="content-group">
<div class="row mt16">
<label for="is_reservation_theme_active" class="col-lg-3 o_light_label"/>
<field name="is_reservation_theme_active"/>
</div>
<div class="row mt8" invisible="not is_reservation_theme_active">
<label for="reservation_primary_color" class="col-lg-3 o_light_label"/>
<field name="reservation_primary_color" widget="color"/>
</div>
<div class="row mt8" invisible="not is_reservation_theme_active">
<label for="reservation_secondary_color" class="col-lg-3 o_light_label"/>
<field name="reservation_secondary_color" widget="color"/>
</div>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>