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

Module: Marketing Card

Entity: card.campaign

Compute Method: _compute_target_url_placeholder

Inputs Method Outputs
"""Overridable in case `_get_record_url` implements other fallbacks."""
for model_name, campaigns in self.grouped('res_model').items():
            if model_name and isinstance(self.env[model_name], self.env.registry['website.published.mixin']):
                campaigns.target_url_placeholder = _("Target record (if published) or Home page")
            else:
                campaigns.target_url_placeholder = _("Home page")

Back to entity