resource.calendar :: Resource Working Time

Calendar model for a resource. It has - attendance_ids: list of resource.calendar.attendance that are a working interval in a given weekday. - leave_ids: list of leaves linked to this calendar. A leave can be general or linked to a specific resource, depending on its resource_id. All methods in this class use intervals. An interval is a tuple holding (begin_datetime, end_datetime). A list of intervals is therefore a list of tuples, holding several intervals of work or leaves.

Fields

  • active [boolean]: Active

  • attendance_ids [one2many: resource.calendar.attendance]: Working Time

  • company_id [many2one: res.company]: Company

  • create_date [readonlydatetime]: Created on

  • create_uid [readonlymany2one: res.users]: Created by

  • display_name [readonlychar]: Display Name

  • flexible_hours [boolean]: Flexible Hours

  • full_time_required_hours [float]: Company Full Time

  • global_leave_ids [one2many: resource.calendar.leaves]: Global Time Off

  • hours_per_day [float]: Average Hour per Day

  • id [readonlyinteger]: ID

  • leave_ids [one2many: resource.calendar.leaves]: Time Off

  • name [requiredchar]: Name

  • two_weeks_calendar [boolean]: Calendar in 2 weeks mode

  • two_weeks_explanation [readonlychar]: Explanation

  • tz [requiredselection]: Timezone

  • tz_offset [readonlychar]: Timezone offset

  • write_date [readonlydatetime]: Last Updated on

  • write_uid [readonlymany2one: res.users]: Last Updated by