Merge pull request #2917 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
SamirLADOUI-sa 2025-04-28 16:18:34 +01:00 committed by GitHub
commit 728ed37199
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>