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

Module: Link Tracker

Entity: link.tracker

Compute Method: _compute_short_url

Inputs Method Outputs
for tracker in self:
            try:
                tracker.short_url = tools.urls.urljoin(tracker.short_url_host or '', tracker.code or '')
            except ValueError:
                raise UserError(self.env._("Please enter valid short URL code."))

Back to entity