[ADD]show_unusual_days_on_calendar
This commit is contained in:
12
show_unusual_days_on_calendar/models/calendar_event.py
Normal file
12
show_unusual_days_on_calendar/models/calendar_event.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models
|
||||
from datetime import datetime, time
|
||||
|
||||
class CalendarEvent(models.Model):
|
||||
_inherit = 'calendar.event'
|
||||
|
||||
@api.model
|
||||
def get_unusual_days(self, date_from, date_to=None):
|
||||
return self.env['hr.leave'].get_unusual_days(date_from, date_to=date_to)
|
Reference in New Issue
Block a user