mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 20:52:06 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,17 @@
|
|||
from odoo import models
|
||||
|
||||
|
||||
class CalendarEvent(models.Model):
|
||||
_inherit = 'calendar.event'
|
||||
|
||||
def _need_video_call(self):
|
||||
""" Determine if the event needs a video call or not depending
|
||||
on the model of the event.
|
||||
|
||||
This method, implemented and invoked in google_calendar, is necessary
|
||||
due to the absence of a bridge module between google_calendar and hr_holidays.
|
||||
"""
|
||||
self.ensure_one()
|
||||
if self.res_model == 'hr.leave':
|
||||
return False
|
||||
return super()._need_video_call()
|
||||
Loading…
Add table
Add a link
Reference in a new issue