员工管理

This commit is contained in:
pengyuthon
2026-01-27 17:14:12 +08:00
parent 9f6afd0fa7
commit 06faabe2be
+2 -1
View File
@@ -53,7 +53,8 @@ class CustomerPortal(portal.CustomerPortal):
@http.route('/phone/vacation/self', type='http', auth="none", csrf=False, cors='*')
def phone_vacation_self(self, **kw):
records = request.env['yuthon.vacation.reports'].sudo().search([('employee_id.id', '=', kw.get('employee_id'))])
emp_id = request.env['res.users'].sudo().search([('id', '=', int(kw.get('users_id')))])
records = request.env['yuthon.vacation.reports'].sudo().search([('employee_id.id', '=', emp_id.employee_id.id)])
data = {}
for record in records:
year = record.vacation_date.year