flectra/addons/website_helpdesk/models/helpdesk_ticket.py

14 lines
406 B
Python
Raw Normal View History

# Part of Flectra See LICENSE file for full copyright and licensing details.
from flectra import models
class HelpdeskTicket(models.Model):
_name = 'helpdesk.ticket'
_inherit = ['helpdesk.ticket', 'portal.mixin']
def _compute_portal_url(self):
super(HelpdeskTicket, self)._compute_portal_url()
for ticket in self:
ticket.portal_url = '/my/ticket/%s' % ticket.id