Merge pull request #483 from odoo-dev/saas-5-report-translation-fix-sle
[odoo/odoo.git] / addons / website_livechat / views / website_livechat.xml
index 374e0d5..ef6b2a9 100644 (file)
@@ -4,7 +4,7 @@
 
 <template id="header" inherit_id="website.layout" name="LiveChat Snippet">
     <xpath expr="//body" position="inside">
-        <t t-if="website.channel_id">
+        <t t-if="website and website.channel_id">
             <t t-raw="website.channel_id.script"/>
         </t>
     </xpath>