Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4890 มุมมอง

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 ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 23
11215
3
มิ.ย. 20
3784
0
ต.ค. 18
3063
1
ธ.ค. 22
25273
6
ธ.ค. 22
15934