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

Module: Asterisk connector

Entity: res.users

Compute Method: _compute_asterisk_chan_name

View 17.0
Inputs Method Outputs
  • asterisk_chan_type
  • resource
- for user in self:
-             chan_name = False
-             if user.asterisk_chan_type and user.resource:
-                 chan_name = f"{user.asterisk_chan_type}/{user.resource}"
-             user.asterisk_chan_name = chan_name
  • asterisk_chan_name

Back to entity