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

Module: Stay

Entity: stay.stay

Compute Method: _compute_arrival_datetime

Inputs Method Outputs
for stay in self:
            datetime_naive_utc = False
            if stay.arrival_date and stay.arrival_time:
                arrival_time = stay.arrival_time
                if arrival_time == "unknown":
                    arrival_time = "unknown_arrival"
                datetime_naive_utc = self._convert_to_datetime_naive_utc(
                    stay.arrival_date, arrival_time
                )
            stay.arrival_datetime = datetime_naive_utc

Back to entity