Multi-week calendars

resource_multi_week_calendar
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/16.0/resource_multi_week_calendar
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHidden
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Coop IT Easy SC
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Coop IT Easy SC
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Carmen Bianca BAKKER, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - resource
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
resource_calendar_form resource.calendar.form resource.calendar button Inherits resource.resource_calendar_form
view_resource_calendar_search resource.calendar.search resource.calendar xpath Inherits resource.view_resource_calendar_search
Models touched (1)

New fields (9)
  • child_calendar_ids One2many → resource.calendar
    comodel_name='resource.calendar' copy=True inverse_name='parent_calendar_id' string='Alternating Working Times'
  • current_multi_week_calendar_id Many2one → resource.calendar
    comodel_name='resource.calendar' compute='_compute_current_week' recursive=True
  • current_week_number Integer
    compute='_compute_current_week' recursive=True
  • is_multi_week Boolean
    compute='_compute_is_multi_week' store=True
  • multi_week_calendar_ids One2many → resource.calendar
    comodel_name='resource.calendar' compute='_compute_multi_week_calendar_ids' recursive=True
  • multi_week_epoch_date Date
    default='1970-01-01' help='When using alternating weeks, the week which contains the\n specified date becomes the first week, and all subsequent weeks\n alternate in order.' required=True string='Date of First Week'
  • parent_calendar_id Many2one → resource.calendar
    comodel_name='resource.calendar' domain=[('parent_calendar_id', '=', False)] ondelete='cascade' string='Main Working Time'
  • week_number Integer
    compute='_compute_week_number' recursive=True store=True
  • week_sequence Integer
    default=0
Public methods (2)
  • copy(self, default=None)
  • get_multi_week_epoch_date(self)