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

Module: Events Organization

Entity: event.event

Compute Method: _compute_address_inline

View 19.0
Inputs Method Outputs
  • address_id
  • address_id.contact_address
  • address_id.name
- """Use venue address if available, otherwise its name, finally ''. """
- for event in self:
-             if (event.address_id.contact_address or '').strip():
-                 event.address_inline = ', '.join(
-                     frag.strip()
-                     for frag in event.address_id.contact_address.split('\n') if frag.strip()
-                 )
-             else:
-                 event.address_inline = event.address_id.name or ''
  • address_inline

Back to entity