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

Module: Resource booking

Entity: resource.booking

Compute Method: _compute_videocall_location

Inputs Method Outputs
"""Get videocall location from meeting or type."""
for record in self:
            # Get videocall_location from type when changing it or creating from ORM
            if (
                not record.videocall_location
                or record._origin.type_id != record.type_id
            ):
                record.videocall_location = record.type_id.videocall_location
            # Get it from meeting only when available
            elif record.meeting_id:
                record.videocall_location = record.meeting_id.videocall_location

Back to entity