Merge pull request #2889 from expsa/Esraa-Ensan-Mobile-tasks

attendance aone in employee
This commit is contained in:
Esraa-Exp 2025-04-24 18:09:41 +02:00 committed by GitHub
commit 99ca6a0d48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>