تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4881 أدوات العرض

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
ديسمبر 23
11203
3
يونيو 20
3779
0
أكتوبر 18
3048
1
ديسمبر 22
25267
6
ديسمبر 22
15918