diff --git a/yuthon_hr_attendance/views/hr_attendance_views.xml b/yuthon_hr_attendance/views/hr_attendance_views.xml
index b1abd971a..ebb6a8cdc 100644
--- a/yuthon_hr_attendance/views/hr_attendance_views.xml
+++ b/yuthon_hr_attendance/views/hr_attendance_views.xml
@@ -30,35 +30,35 @@
confirm="确定要删除选中的记录吗?" />
-
+
-
+
-
-
+
+
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
diff --git a/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml b/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
index 2c046b67a..919350e71 100644
--- a/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
+++ b/yuthon_hr_attendance/views/yuthon_shift_approval_views.xml
@@ -75,7 +75,7 @@
('start_datetime', '>', shift_date + ' 00:00:00'),
('end_datetime', '<', shift_date + ' 23:59:59')
]"
- invisible="alternate_shifts == 'alternate'"
+ invisible="alternate_shifts != 'alternate' and not shift_date"
context="{'tree_view_ref': 'yuthon_hr_attendance.view_yuthon_shift_context',
'search_view_ref': 'yuthon_hr_attendance.search_yuthon_shift_context',
'order': 'start_datetime desc',
@@ -84,6 +84,7 @@
'search_view_ref': 'yuthon_hr_attendance.search_yuthon_shift_context',
'order': 'start_datetime desc',
'search_default_group_by_month': True,}" options="{'no_create': True, 'no_edit':True}"
+ invisible="not return_date"
domain="[
('resource_id', '=', resource_id),
('start_datetime', '>', return_date + ' 00:00:00'),
@@ -100,7 +101,7 @@
-