1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/whatsapp_event/models/whatsapp_template_variable.py
2024-12-10 09:04:09 +07:00

19 lines
613 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class WhatsAppTemplateVariable(models.Model):
_inherit = 'whatsapp.template.variable'
def _portal_available_for_model(self):
"""
list is defined here else we need to create bridge module
:param model: model name
:return: list of model name that have portal
"""
available_for_model = super()._portal_available_for_model()
return available_for_model + [
'event.registration', # get_portal_url is owrride in event.registration
]