Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: eLearning
Entity: slide.channel.partner
Compute Method: _compute_invitation_link
| Inputs | Method | Outputs |
|---|---|---|
|
- ''' This sets the url used as hyperlink in the channel invitation email in template mail_notification_channel_invite. + ''' This sets the url used as hyperlink in the channel invitation email in template mail_template_slide_channel_enroll. The partner_id is given in the url, as well as a hash based on the partner and channel id. ''' for record in self: invitation_hash = record._get_invitation_hash() record.invitation_link = f'{record.channel_id.get_base_url()}/slides/{record.channel_id.id}/invite?invite_partner_id={record.partner_id.id}&invite_hash={invitation_hash}' |
|
