Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Employee Contracts

Entity: hr.contract

Compute Method: _compute_calendar_mismatch

View 18.0
Inputs Method Outputs
  • resource_calendar_id
  • employee_id
  • employee_id.resource_calendar_id
- for contract in self:
-             contract.calendar_mismatch = contract.resource_calendar_id != contract.employee_id.resource_calendar_id
  • calendar_mismatch

Back to entity