我想知道哪个表用于保存OpenERP ver 7中出勤和离开的记录。 我发现resource_resource表,res_users和hr_employee表用于保存员工的记录。但是哪一个用于保留上述记录。?
答案 0 :(得分:0)
select
h.id as employee_id,h.name as leave_reason,
e.resource_id,e.name_related,s.name,r.id as resource,r.name as res_name
from
hr_holidays h,hr_employee e,hr_holidays_status s,
resource_resource r
where
h.employee_id=e.id and
h.holiday_status_id=s.id and
e.resource_id=r.id