0

我想知道OpenERP ver 7中哪个表用来保存考勤和请假记录。我发现resource_resource表,res_users和hr_employee表是用来保存员工记录的。但是哪一个用来保存以上记录。?

4

1 回答 1

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
于 2013-04-23T17:28:05.700 回答