@@ -26,8 +26,10 @@
|
||||
<field name="related_issues_id" invisible="not is_issues"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="original_days"/>
|
||||
<field name="now_days"/>
|
||||
<field name="original_days" invisible="now_type != 'days'"/>
|
||||
<field name="now_days" invisible="now_type != 'days'"/>
|
||||
<field name="original_hours" invisible="now_type != 'hours'"/>
|
||||
<field name="now_hours" invisible="now_type != 'hours'"/>
|
||||
<field name="remarks" invisible="1"/>
|
||||
<field name="yuthon_company" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
|
||||
@@ -16,8 +16,8 @@ class AttendanceBannerRoute(Controller):
|
||||
last_day_of_month = next_month_first_day - timedelta(days=1)
|
||||
domain = [
|
||||
('employee_id.user_id', '=', request.env.user.id),
|
||||
('check_in', '>=', first_day_of_month),
|
||||
('check_in', '<=', last_day_of_month),
|
||||
('current_data', '>=', first_day_of_month.date()),
|
||||
('current_data', '<=', last_day_of_month.date()),
|
||||
('week', 'not in', ['seven', 'six'])
|
||||
]
|
||||
attendance = request.env['hr.attendance'].sudo().search(domain)
|
||||
|
||||
Reference in New Issue
Block a user