title: Odoo <t t-call="website.layout"> qWebException
body: <p>When I add   to my templates I get the following error</p>
  
  <pre><code>QWebException: "'NoneType' object has no attribute 'name'" while evaluating
  'res_company.name'
  </code></pre>
  
  <p>the template code:</p>
  
  <pre><code>&lt;template id="index" &gt;
          &lt;t t-call="website.layout"&gt;
              &lt;t t-set="title"&gt;Academy&lt;/t&gt;
              &lt;div class="oe_structure"&gt;
                  &lt;div class="container"&gt;
                      &lt;ul&gt;&lt;t t-foreach="brands" t-as="b"&gt;
                          &lt;li&gt;&lt;a t-attf-href="/pa/{{b.id}}"&gt;
                              &lt;t t-esc="b.name"/&gt;
                          &lt;/a&gt;&lt;/li&gt;
                      &lt;/t&gt;&lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/t&gt;
      &lt;/template&gt;
  </code></pre>