From d48cb84a101c2c929e93b57410cb094f64663453 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Mon, 23 Feb 2026 19:18:04 +0530 Subject: [PATCH] Introduce Dine360 Chennora theme with custom homepage, product features, and dashboard routing for logged-in users. --- .../__pycache__/main.cpython-310.pyc | Bin 1633 -> 1665 bytes addons/dine360_dashboard/controllers/main.py | 7 +- addons/dine360_theme_chennora/__init__.py | 1 + addons/dine360_theme_chennora/__manifest__.py | 1 + .../__pycache__/__init__.cpython-310.pyc | Bin 181 -> 210 bytes .../dine360_theme_chennora/models/__init__.py | 2 + .../models/product_template.py | 7 + addons/dine360_theme_chennora/views/pages.xml | 213 ++++-------------- .../views/product_views.xml | 18 ++ 9 files changed, 80 insertions(+), 169 deletions(-) create mode 100644 addons/dine360_theme_chennora/models/__init__.py create mode 100644 addons/dine360_theme_chennora/models/product_template.py create mode 100644 addons/dine360_theme_chennora/views/product_views.xml diff --git a/addons/dine360_dashboard/controllers/__pycache__/main.cpython-310.pyc b/addons/dine360_dashboard/controllers/__pycache__/main.cpython-310.pyc index 54c28f26abc889446a1fb6953b35fca9dfb34b38..9b6a727973d2d5813a22c58b1215c2abe6abb831 100644 GIT binary patch delta 272 zcmaFJ)5y!0&&$ij00hrI&(5@F-N>iGEXkb00)(u+tSOu+TrCXEj8SYU+`$Z*Jd^#I zMOlm3fT|~FF`Gs^0U0F>S&Ugs#hfJ!3z${{!J^Gqqzn|%WP%u`HJOi9hf#jAHLE?F0mxv($qhgOzR7D@w*UZDL_@Lw delta 241 zcmZqVeaOR?&&$ij00fz;4Vk-HHu7mOOLC^L03mBHYYJBicMC%^V-#BoPcVZf?__^w zQMOwwrNya5lQWr3%?*J1N*J;jQy3)~7BDSj$YM@mN@q-APGRX~s%0u+SO7Go21sWy zX0fKQ&0$)|1T=-+Z}Ly(EH$0w^)ixQ}S=I6{jW^C1>1XD@x5vNi8Z; z0?JRG!lKV21Y(?K(PAxP1F^ocXiHZKl&2;YXO^VuW#s3k79^&pYBGThEYh8<$Ew39 YGdY^oo=qR9yvShk0-yl*01w_h-~a#s diff --git a/addons/dine360_dashboard/controllers/main.py b/addons/dine360_dashboard/controllers/main.py index 153def4..3190d80 100644 --- a/addons/dine360_dashboard/controllers/main.py +++ b/addons/dine360_dashboard/controllers/main.py @@ -13,9 +13,12 @@ class CustomHome(Home): from odoo.addons.website.controllers.main import Website class ImageHome(Website): - @http.route('/', type='http', auth='user', website=True, sitemap=True) + @http.route('/', type='http', auth='public', website=True, sitemap=True) def index(self, **kwargs): - # Override root to show Dashboard + if not request.session.uid: + return request.render('website.homepage') + + # Override root to show Dashboard for logged in users menus = request.env['ir.ui.menu'].sudo().search([ ('parent_id', '=', False) ], order='sequence') diff --git a/addons/dine360_theme_chennora/__init__.py b/addons/dine360_theme_chennora/__init__.py index e046e49..91c5580 100644 --- a/addons/dine360_theme_chennora/__init__.py +++ b/addons/dine360_theme_chennora/__init__.py @@ -1 +1,2 @@ from . import controllers +from . import models diff --git a/addons/dine360_theme_chennora/__manifest__.py b/addons/dine360_theme_chennora/__manifest__.py index 1a33c5f..f63fd21 100644 --- a/addons/dine360_theme_chennora/__manifest__.py +++ b/addons/dine360_theme_chennora/__manifest__.py @@ -13,6 +13,7 @@ 'views/faq_page.xml', # FAQ Page 'views/shop_page.xml', # Shop Page 'views/product_details_page.xml', # Customized Product Details Page + 'views/product_views.xml', # Product Form custom fields 'views/snippets.xml', # Custom Building Blocks 'views/options.xml', # Options for snippets (if any) 'data/website_data.xml', # Data for creating pages diff --git a/addons/dine360_theme_chennora/__pycache__/__init__.cpython-310.pyc b/addons/dine360_theme_chennora/__pycache__/__init__.cpython-310.pyc index b75ad5507e1d60988ac9a554bdbfa237aedd9bb7..96920c197edface74a1f154778297f105c7ba53b 100644 GIT binary patch delta 106 zcmdnWc!`lWpO=@50SN3v=VTgAav7r-89{6&Ae$+Q3CLy+X3%7r w=pdq`$#{z`H$Npcr`S)E`4&SF6Hr$XGmu!xP{ayivrbI+;9vo=co+m20azy!rvLx| delta 93 zcmcb_xRsGNpO=@50SFY|Ps@~^$SZ3r0OX`Fq%h_%