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

Module: Live Chat

Entity: im_livechat.channel

Compute Method: _compute_script_external

View 20.0
Inputs Method Outputs
  • id
+ values = {
+             "dbname": self.env.cr.dbname,
+         }
+ for record in self:
+             values["channel_id"] = record.id
+             values["url"] = record.get_base_url()
+             script_external = self.env['ir.qweb']._render('im_livechat.external_loader', values) if record.id else False
+             record.script_external = script_external
+             record.script_external_text = str(script_external) if script_external else False
  • script_external
  • script_external_text

Back to entity