From 90e9d210a6dc30beb9cc5e01ed4c44cd8d2777d6 Mon Sep 17 00:00:00 2001 From: vidhya Date: Fri, 25 Sep 2026 20:12:16 +0530 Subject: [PATCH] footer update and announcement dynamic data update --- .../__pycache__/main.cpython-312.pyc | Bin 8079 -> 9275 bytes .../education_dashboard/controllers/main.py | 28 ++++++++++ .../static/src/js/education_dashboard.js | 4 +- .../src/xml/education_dashboard_templates.xml | 48 +++++++----------- .../views/portal_exam_templates.xml | 18 +++---- .../views/login_templates.xml | 8 +-- .../views/portal_templates.xml | 36 ++++++------- wrapper.xml | 6 +-- 8 files changed, 81 insertions(+), 67 deletions(-) diff --git a/addons/education_dashboard/controllers/__pycache__/main.cpython-312.pyc b/addons/education_dashboard/controllers/__pycache__/main.cpython-312.pyc index 808b76d019bf82f8eeffecff71fda23ab801e156..8eea5c91930c4589814043c587e260f2c5875d5b 100644 GIT binary patch delta 2236 zcmZvdT}&I<702()*f1V5#$cOZ{53!z7zki&#(Zrc@q41WwXmt3=}wB;zu6XVH9(wh&&%^@LZjmGCNV zAiRbf317lC!t2;h_+9KEd>J1hdwLPx0zXVi;`%HJcWGd7U7-}zgELvtI=D?AKCs5A2t@6 z6nR;S<`S87Uo@T0ET<)9QAy|gjA|#JB-KLj(yC34=9KxR<%Lut`??|vvXYhj^lEK; zOi>1vK_V7L0#aZNmXu1(rM&{HOkZE0-&ir`61kL8VYAB% zdrF00jtaXFpO-SJj9TGx%I(~~UgbMZ_6i*fLWkVDP1y!0D_h|YH^^#(_KQ@zR=H|)6jH-)pz>ov=6;NiF>Hc`K>MS^4g)mDJ_QtKI zVQb1|KkxKEvf3>x}s*usx||11le(IsVS_jHL=>grWtyg z-TtcSw}ygO*kN0A`iQBa?Dp*l!$tQ<$vs(gPnH`xcdWLLBub?V`%hgWx8=hoOK-cVT( z%bwt~T7$1~&8%~%D|oMPw{SmO3KuRG!xwih$&ZgIMeETucD=itTr4FEkCKIr&?a-w zeAm3wJ5dxSOTzi0aQ?CDLdi8#bj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n974GQdh$5!EgK z^XE%cTu7$HhspH9X?Pe9N^_C&cJfVpZcn*DzDuMllzbmnD~kOGzgpR5|IwvZV)mbi zT2bv=+uh~7ZEK361$TMBZEGI|A5nM3YkS0K#VgXOS$acMQ+wH>]+>', '', ann.content or '')[:60] + type_colors = { + 'notice': ('#fee2e2', '#b91c1c'), + 'circular': ('#e0f2fe', '#0369a1'), + 'event': ('#fef9c3', '#a16207') + } + bg_color, text_color = type_colors.get(ann.announcement_type, ('#d1fae5', '#065f46')) + ann_type = dict(ann._fields['announcement_type'].selection).get(ann.announcement_type) if ann.announcement_type else 'Notice' + announcements_data.append({ + 'title': ann.title, + 'subtitle': subtitle + ('...' if len(subtitle) == 60 else ''), + 'type': ann_type, + 'bg_color': bg_color, + 'text_color': text_color, + }) + except Exception: + pass + # ── User / date context ─────────────────────────────────────────────── user_name = env.user.name today_str = datetime.date.today().strftime('%A, %b %d, %Y') @@ -149,6 +176,7 @@ class EducationDashboardController(http.Controller): # operational 'upcoming_exams': upcoming_exams, 'recent_activities': recent_activities, + 'announcements': announcements_data, # context 'user_name': user_name, 'today': today_str, diff --git a/addons/education_dashboard/static/src/js/education_dashboard.js b/addons/education_dashboard/static/src/js/education_dashboard.js index 3cce0d8..f26bc7c 100644 --- a/addons/education_dashboard/static/src/js/education_dashboard.js +++ b/addons/education_dashboard/static/src/js/education_dashboard.js @@ -243,7 +243,7 @@ class EducationDashboard extends Component { openCreateCourse() { this.actionService.doAction({ name: "Courses", type: "ir.actions.act_window", - res_model: "education.course", + res_model: "education.lms.course", views: [[false, "list"], [false, "form"]], target: "current" }); } @@ -267,7 +267,7 @@ class EducationDashboard extends Component { openFees() { this.actionService.doAction({ name: "Fee Payments", type: "ir.actions.act_window", - res_model: "education.fee.payment", + res_model: "education.student.payment", views: [[false, "list"], [false, "form"]], target: "current" }); } diff --git a/addons/education_dashboard/static/src/xml/education_dashboard_templates.xml b/addons/education_dashboard/static/src/xml/education_dashboard_templates.xml index 534faa9..7d301f3 100644 --- a/addons/education_dashboard/static/src/xml/education_dashboard_templates.xml +++ b/addons/education_dashboard/static/src/xml/education_dashboard_templates.xml @@ -239,38 +239,24 @@ View All -
- Important -
-
Exam Schedule Released
-
Mid-term schedule has been published.
+ + +
+ +
+
+
+
+ +
+
+
+ +
+ +
No recent announcements
- -
-
- General -
-
Library Hours Extended
-
Open till 8 PM this week.
-
- -
-
- Academic -
-
Course Registration Open
-
Elective course registration is now open.
-
- -
-
- Event -
-
Annual Tech Fest
-
Scheduled for next month.
-
- -
+
diff --git a/addons/education_exam/views/portal_exam_templates.xml b/addons/education_exam/views/portal_exam_templates.xml index 5e8e599..324735e 100644 --- a/addons/education_exam/views/portal_exam_templates.xml +++ b/addons/education_exam/views/portal_exam_templates.xml @@ -822,9 +822,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + @@ -962,9 +962,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + @@ -1144,9 +1144,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + diff --git a/addons/education_portal/views/login_templates.xml b/addons/education_portal/views/login_templates.xml index cb0c898..e9df3cd 100644 --- a/addons/education_portal/views/login_templates.xml +++ b/addons/education_portal/views/login_templates.xml @@ -319,10 +319,10 @@ -
-
Powered by Odoo Education Portal
-
© 2026 My Company. All rights reserved.
-
+
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube +
diff --git a/addons/education_portal/views/portal_templates.xml b/addons/education_portal/views/portal_templates.xml index 47bba22..61e8d87 100644 --- a/addons/education_portal/views/portal_templates.xml +++ b/addons/education_portal/views/portal_templates.xml @@ -1173,9 +1173,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + @@ -1971,9 +1971,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + @@ -2864,9 +2864,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube + @@ -3591,9 +3591,9 @@
- © 2026 My Company. All rights reserved. - Powered by odoo -
+ © 2026 Metatron EduPortal. All rights reserved. + Powered by Metatroncube +