Skip to content

Commit

Permalink
[FIX] shift_attendance: domain daily attendance view
Browse files Browse the repository at this point in the history
  • Loading branch information
remytms committed Dec 17, 2024
1 parent fd3af51 commit 0b85520
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shift_attendance/views/attendance_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@
<field name="name">Daily attendance sheets</field>
<field name="res_model">shift.sheet</field>
<field name="view_mode">tree,form</field>
<field name="domain">
[('end_time','&gt;', datetime.datetime.now().replace(hour=00, minute=00, second=10)),
('start_time','&lt;', datetime.datetime.now().replace(hour=23, minute=59, second=59))]
</field>
<field
name="domain"
>[('end_time','&gt;', context_today().strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', context_today().strftime('%Y-%m-%d 23:59:59'))]</field>
</record>

<!-- Top menu item -->
Expand Down

0 comments on commit 0b85520

Please sign in to comment.