Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4840 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

what is your problem ?

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 23
11177
3
iun. 20
3765
0
oct. 18
3026
1
dec. 22
25221
6
dec. 22
15882