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

Module: Database Auto-Backup

Entity: db.backup

Compute Method: _compute_name

Inputs Method Outputs
"""Get the right summary for this job."""
for rec in self:
            if rec.method == "local":
                rec.name = f"{rec.folder} @ localhost"
            elif rec.method == "sftp":
                rec.name = f"sftp://{rec.sftp_user}@{rec.sftp_host}:{rec.sftp_port}{rec.folder}"

Back to entity