Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Time Off
Entity: res.partner
Compute Method: _compute_leave_date_to
| Inputs | Method | Outputs |
|---|---|---|
|
+ for partner in self: + # in the rare case of multi-user partner, return the earliest + # possible return date + dates = partner.user_ids.mapped("leave_date_to") + partner.leave_date_to = min(dates) if dates and all(dates) else False |
|
