跳至内容
菜单
此问题已终结
2 回复
4522 查看

i created a new group in my new module ( based on hr and hr_attendance directories ) ...
 i need to enable employee group to see his attendance history only .. (from xml)
note: employee group inherit (base.group_user) group

形象
丢弃
最佳答案

Hi,

Check this Free module for the same: Employee Attendance

Rule:

<record id="hr_attendance_personal_rule" model="ir.rule">
<field name="name">Employee Attendance View</field>
<field ref="hr_attendance.model_hr_attendance" name="model_id"/>
<field name="domain_force">['|',('employee_id.user_id','=',user.id),('employee_id.user_id','=',False)]</field>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
</record>


Thanks

形象
丢弃
最佳答案

Hello, i have check the module Employee Attendance, but it seems it only works in Odoo 10, does it exist for Odoo 12?

I am looking for a solution, so employees can check their own attendaces. Thanks

形象
丢弃
编写者

'hr_attendance' module exist in odoo 12 but i use odoo11 now

what is your problem ?

相关帖文 回复 查看 活动
1
12月 23
10724
3
6月 20
3418
0
10月 18
2692
1
12月 22
24592
6
12月 22
15225