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

Module: Connector Importer

Entity: import.source

Compute Method: _compute_config_summary

Inputs Method Outputs
"""Generate configuration summary HTML.

        Configurations parameters can vary depending on the kind of source.
        To display meaningful information on the recordset
        w/out hacking the recordset view each time
        we generate a short HTML summary.

        For instance, if you are connecting to an external db
        you might want to show DSN, if you are loading a CSV
        you might want to show delimiter, quotechar and so on.

        To add your fields automatically to the summary,
        just override `_config_summary_fields`.
        They'll be automatically included in the summary.
        """
tmpl_xid = self._config_summary_template
qweb = self.env["ir.qweb"].sudo()
for item in self:
            item.config_summary = qweb._render(tmpl_xid, item._config_summary_data())

Back to entity