[ADD]show_unusual_days_on_calendar

This commit is contained in:
2024-05-02 17:02:37 +02:00
parent fb012e4362
commit 547cac2aca
5 changed files with 65 additions and 0 deletions

View 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)