From db157db76a1708223ccb3e2f67fd62d0de246df7 Mon Sep 17 00:00:00 2001 From: vidhya Date: Fri, 25 Sep 2026 15:52:01 +0530 Subject: [PATCH] view forms changes --- .../views/hostel_bed_views.xml | 14 +++++ .../views/hostel_complaint_views.xml | 14 +++++ .../views/hostel_fee_views.xml | 15 +++++ .../views/hostel_floor_views.xml | 13 +++++ .../views/hostel_room_views.xml | 14 +++++ .../views/hostel_visitor_views.xml | 14 +++++ .../views/assignment_views.xml | 14 +++++ .../views/attendance_views.xml | 53 +++++++++++++++++ .../views/driver_views.xml | 14 +++++ .../views/incident_views.xml | 27 +++++++++ .../views/route_views.xml | 14 +++++ .../views/stop_views.xml | 12 ++++ .../views/trip_views.xml | 15 +++++ .../views/vehicle_views.xml | 14 +++++ .../static/src/scss/backend_forms.scss | 38 ++----------- .../static/src/xml/sidebar.xml | 57 ++++++++++++++----- 16 files changed, 293 insertions(+), 49 deletions(-) diff --git a/addons/education_hostel/views/hostel_bed_views.xml b/addons/education_hostel/views/hostel_bed_views.xml index 6eda9c2..bcf8f73 100644 --- a/addons/education_hostel/views/hostel_bed_views.xml +++ b/addons/education_hostel/views/hostel_bed_views.xml @@ -42,9 +42,23 @@ + + education.hostel.bed.search + education.hostel.bed + + + + + + + + + + Beds education.hostel.bed list,form + diff --git a/addons/education_hostel/views/hostel_complaint_views.xml b/addons/education_hostel/views/hostel_complaint_views.xml index 17f889c..b90fc88 100644 --- a/addons/education_hostel/views/hostel_complaint_views.xml +++ b/addons/education_hostel/views/hostel_complaint_views.xml @@ -70,11 +70,25 @@ + + education.hostel.complaint.search + education.hostel.complaint + + + + + + + + + + Hostel Complaints education.hostel.complaint list,form + {'search_default_state': 'submitted'} diff --git a/addons/education_hostel/views/hostel_fee_views.xml b/addons/education_hostel/views/hostel_fee_views.xml index 96f482f..7ef2206 100644 --- a/addons/education_hostel/views/hostel_fee_views.xml +++ b/addons/education_hostel/views/hostel_fee_views.xml @@ -36,10 +36,24 @@ + + education.hostel.fee.search + education.hostel.fee + + + + + + + + + + Hostel Fee Structures education.hostel.fee.structure list,form + @@ -102,5 +116,6 @@ Hostel Fees education.hostel.fee list,form + diff --git a/addons/education_hostel/views/hostel_floor_views.xml b/addons/education_hostel/views/hostel_floor_views.xml index abba23c..2162040 100644 --- a/addons/education_hostel/views/hostel_floor_views.xml +++ b/addons/education_hostel/views/hostel_floor_views.xml @@ -51,9 +51,22 @@ + + education.hostel.floor.search + education.hostel.floor + + + + + + + + + Floors education.hostel.floor list,form + diff --git a/addons/education_hostel/views/hostel_room_views.xml b/addons/education_hostel/views/hostel_room_views.xml index 9295fb3..7c3549d 100644 --- a/addons/education_hostel/views/hostel_room_views.xml +++ b/addons/education_hostel/views/hostel_room_views.xml @@ -71,9 +71,23 @@ + + education.hostel.room.search + education.hostel.room + + + + + + + + + + Rooms education.hostel.room list,form + diff --git a/addons/education_hostel/views/hostel_visitor_views.xml b/addons/education_hostel/views/hostel_visitor_views.xml index abf446c..f83d692 100644 --- a/addons/education_hostel/views/hostel_visitor_views.xml +++ b/addons/education_hostel/views/hostel_visitor_views.xml @@ -69,10 +69,24 @@ + + education.hostel.visitor.search + education.hostel.visitor + + + + + + + + + + Visitor Log education.hostel.visitor list,form + diff --git a/addons/education_transportation/views/assignment_views.xml b/addons/education_transportation/views/assignment_views.xml index bf352e8..149793a 100644 --- a/addons/education_transportation/views/assignment_views.xml +++ b/addons/education_transportation/views/assignment_views.xml @@ -55,10 +55,24 @@ + + education.transport.assignment.search + education.transport.assignment + + + + + + + + + + Assignments education.transport.assignment list,form + diff --git a/addons/education_transportation/views/attendance_views.xml b/addons/education_transportation/views/attendance_views.xml index 8f4481a..8b2a15e 100644 --- a/addons/education_transportation/views/attendance_views.xml +++ b/addons/education_transportation/views/attendance_views.xml @@ -20,9 +20,62 @@ + + education.transport.attendance.form + education.transport.attendance + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + education.transport.attendance.search + education.transport.attendance + + + + + + + + + + + + + + + + + + Attendance education.transport.attendance list,form + diff --git a/addons/education_transportation/views/driver_views.xml b/addons/education_transportation/views/driver_views.xml index 4f0c485..739647e 100644 --- a/addons/education_transportation/views/driver_views.xml +++ b/addons/education_transportation/views/driver_views.xml @@ -45,10 +45,24 @@ + + education.transport.driver.search + education.transport.driver + + + + + + + + + + Drivers education.transport.driver list,form + diff --git a/addons/education_transportation/views/incident_views.xml b/addons/education_transportation/views/incident_views.xml index fb1cb68..9ef35c4 100644 --- a/addons/education_transportation/views/incident_views.xml +++ b/addons/education_transportation/views/incident_views.xml @@ -64,9 +64,36 @@ + + education.transport.incident.search + education.transport.incident + + + + + + + + + + + + + + + + + + + + + + + Incidents education.transport.incident list,form + diff --git a/addons/education_transportation/views/route_views.xml b/addons/education_transportation/views/route_views.xml index 6ae7e0a..bcfff5b 100644 --- a/addons/education_transportation/views/route_views.xml +++ b/addons/education_transportation/views/route_views.xml @@ -54,10 +54,24 @@ + + education.transport.route.search + education.transport.route + + + + + + + + + + Routes education.transport.route list,form + diff --git a/addons/education_transportation/views/stop_views.xml b/addons/education_transportation/views/stop_views.xml index 0b28ad1..a8f6f37 100644 --- a/addons/education_transportation/views/stop_views.xml +++ b/addons/education_transportation/views/stop_views.xml @@ -39,10 +39,22 @@ + + education.transport.stop.search + education.transport.stop + + + + + + + + Stops education.transport.stop list,form + diff --git a/addons/education_transportation/views/trip_views.xml b/addons/education_transportation/views/trip_views.xml index 9ba23a6..5d956a0 100644 --- a/addons/education_transportation/views/trip_views.xml +++ b/addons/education_transportation/views/trip_views.xml @@ -53,10 +53,25 @@ + + education.transport.trip.search + education.transport.trip + + + + + + + + + + + Trips education.transport.trip list,form + diff --git a/addons/education_transportation/views/vehicle_views.xml b/addons/education_transportation/views/vehicle_views.xml index 28440ce..de73be0 100644 --- a/addons/education_transportation/views/vehicle_views.xml +++ b/addons/education_transportation/views/vehicle_views.xml @@ -58,10 +58,24 @@ + + education.transport.vehicle.search + education.transport.vehicle + + + + + + + + + + Vehicles education.transport.vehicle list,form + diff --git a/addons/theme_student_erp_custom/static/src/scss/backend_forms.scss b/addons/theme_student_erp_custom/static/src/scss/backend_forms.scss index bac7c13..aa557b9 100644 --- a/addons/theme_student_erp_custom/static/src/scss/backend_forms.scss +++ b/addons/theme_student_erp_custom/static/src/scss/backend_forms.scss @@ -48,7 +48,7 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { .o_main_navbar { --o-navbar-height: 70px; font-size: 0.975rem; - background-color: #eef9f9 !important; + background: linear-gradient(135deg, #e6f7f7 0%, #d1f1f1 100%) !important; border-bottom: 1px solid #e2e8f0 !important; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important; color: #144d4d !important; @@ -221,7 +221,7 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { // Input fields (Modern SaaS style - clean gray boxes that highlight) .o_field_widget { - input, select, textarea { + input:not([type="checkbox"]):not([type="radio"]), select, textarea { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; @@ -291,25 +291,7 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { background-color: transparent !important; border-bottom: none !important; box-shadow: none !important; - padding: 20px 28px 8px 28px !important; -} - -// Top row: breadcrumb on left, New button on RIGHT -.o_control_panel_breadcrumbs_actions { - display: flex !important; - align-items: center !important; - flex-wrap: nowrap !important; - gap: 12px !important; -} - -.o_control_panel .o_breadcrumb { - order: 1 !important; // Always visually FIRST (left side) - flex: 1 !important; // Takes all remaining space → pushes button right - display: flex !important; - align-items: center !important; - flex-wrap: wrap !important; - gap: 4px !important; - min-width: 0 !important; + padding: 10px 28px !important; } // Small breadcrumb trail (Home > Master Data >) @@ -335,14 +317,8 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { color: #cbd5e1 !important; } -// New button → RIGHT side, teal — uses order:2 to override DOM order +// New button style .o_control_panel_main_buttons { - order: 2 !important; // Always visually LAST (right side) - flex-shrink: 0 !important; - display: flex !important; - align-items: center !important; - gap: 8px !important; - .btn-primary { background-color: #1f8f8f !important; border-color: #1f8f8f !important; @@ -379,11 +355,7 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { // Navigation row: search + filters + view switchers + pager .o_control_panel_navigation { - display: flex !important; - align-items: center !important; - gap: 8px !important; padding: 8px 0 0 0 !important; - flex-wrap: wrap !important; } // ---- SEARCH BAR ---- @@ -394,8 +366,6 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager { padding: 3px 12px !important; box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important; min-height: 36px !important; - flex: 1 1 220px !important; - max-width: 360px !important; transition: border-color 0.2s, box-shadow 0.2s !important; &:focus-within { diff --git a/addons/theme_student_erp_custom/static/src/xml/sidebar.xml b/addons/theme_student_erp_custom/static/src/xml/sidebar.xml index 17598e6..fa7682c 100644 --- a/addons/theme_student_erp_custom/static/src/xml/sidebar.xml +++ b/addons/theme_student_erp_custom/static/src/xml/sidebar.xml @@ -6,23 +6,23 @@
+ style="top: 70px; bottom: 0; left: 0; width: 260px; background: linear-gradient(135deg, #1f8f8f 0%, #144d4d 55%, #0d3d3d 100%); border-right: 1px solid rgba(255,255,255,0.1); z-index: 90; padding-top: 10px; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); color: white;"> -
- -
+
+ +
@@ -59,16 +76,16 @@ - +