I'm trying to change the default header but every field throws a NoneType error. For example, in the code below it says QWebException: "'NoneType' object has no attribute 'logo'" while evaluating"'data:image/png;base64,%s' % company.logo"
<pre>
<template id="dropoff_confirmation_document">
<t t-call="report.html_container"> <t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="header">
<div class="row" style="border-bottom: 1px solid black;">
<div class="col-xs-3 pull-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
<div t-field="company.partner_id" t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> </div>
</div>
</pre>