attendance aone in employee

This commit is contained in:
Esraa-Exp 2025-04-24 18:07:49 +02:00
parent ef63d46610
commit c5fa53ca9d
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class HrEmployee(models.Model):
message_sent = fields.Boolean(string="Message Sent", default=False)
# Used internally by the API
last_active_time = fields.Datetime(readonly=True)
attendance_zone_id = fields.Many2many('attendance.zone', string='Attendance Zone')
def user_push_notification(self, notification):

View File

@ -13,6 +13,11 @@
<field name="device_id"/>
<field name="fcm_token"/>
</field>
<xpath expr="//page[@name='hr_settings']/group/group[2]//field[@name='resource_calendar_id']" position="before">
<field name="attendance_zone_id" widget="many2many_tags"/>
</xpath>
</field>
</record>