# calendar Resource Working Time - 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. ## Documentation Calendar model for a resource. It has - Catalog: `Odoo` - Schema: `resource` The data in this table is partitioned per value of the column. This is a read-only table. The Odoo API may not support changing the data or the Invantive SQL driver for Odoo does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Odoo API. ## Table Columns The columns of the table `calendar` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `active` | `boolean` | Active | ☐ | If the active field is set to false, it will allow you to hide the Working Time without removing it. | | `associated_leaves_count` | `int32` | Time Off Count | ☐ | | | `attendance_ids` | `string` | | ☐ | | | `company_id_label` | `string` | | ☐ | | | `company_id` | `string` | | ☐ | | | `contracts_count` | `int32` | # Contracts using it | ☐ | | | `create_date` | `datetime` | Created on | ☐ | | | `create_uid_label` | `string` | | ☐ | | | `create_uid` | `string` | | ☐ | | | `display_name` | `string` | Display Name | ☐ | | | `full_time_required_hours` | `decimal` | Fulltime Hours | ☐ | Number of hours to work to be considered as fulltime. | | `global_leave_ids` | `string` | | ☐ | | | `hours_per_day` | `decimal` | Average Hour per Day | ☐ | Average hours per day a resource is supposed to work with this calendar. | | `hours_per_week` | `decimal` | Hours per Week | ☐ | | | `id` | `int32` | ID | ☐ | | | `is_fulltime` | `boolean` | Is Full Time | ☐ | | | `leave_ids` | `string` | | ☐ | | | `name` | `string` | Name | ☑ | | | `two_weeks_calendar` | `boolean` | Calendar in 2 weeks mode | ☐ | | | `two_weeks_explanation` | `string` | Explanation | ☐ | | | `tz_offset` | `string` | Timezone offset | ☐ | | | `tz` | `string` | Timezone | ☑ | This field is used in order to define in which timezone the resources will work. | | `work_time_rate` | `decimal` | Work Time Rate | ☐ | Work time rate versus full time working schedule, should be between 0 and 100 %. | | `write_date` | `datetime` | Last Updated on | ☐ | | | `write_uid_label` | `string` | | ☐ | | | `write_uid` | `string` | | ☐ | |