|
|
"""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())
|
|