title: How to set colspan value from function in qWeb?
body: <p>I am trying to make an HTML report using qWeb in Odoo. Table I have to print has variable columns, and those columns have variable colspan values, so I defined a method in Python in order to return the header and colspan of that columns. Method returns something like this:</p>
  
  <pre><code>OrderedDict({'header 1' : 6, 'header 2' : 6, 'header 3' : 2, 'resume' : 2})
  </code></pre>
  
  <p>In qWeb code I wrote this:</p>
  
  <pre><code>&lt;td align="center" style="border:1px solid black;" colspan="&lt;t t-esc='partial_value' /&gt;" &gt;&lt;b&gt;&lt;t t-raw="partial" /&gt;&lt;/b&gt;&lt;/td&gt;
  </code></pre>
  
  <p>The name of the column (the header) is printed successfully, but the colspan value is raising an exception (XMLSyntaxError: Unescaped '&lt;' not allowed in attributes values). I also tried tag t using t-esc... It raised same error.</p>
  
  <p>So, how to set colspan value dynamically?</p>
  
  <p>Thanks.</p>