title: Get data from python to qweb view
body: <p>In odoo13 i have a python function like this</p>
  <pre><code>def get_data(self, params):
      json_string = [{&quot;SKU&quot;: &quot;A4110&quot;,&quot;Unit&quot;: &quot;PC&quot;}]
      return json_string
  </code></pre>
  <p>and file xml view like this</p>
  <pre><code>&lt;record id=&quot;view_report_product_qweb&quot; model=&quot;ir.ui.view&quot;&gt;
    &lt;field name=&quot;name&quot;&gt;report.view.qweb&lt;/field&gt;
    &lt;field name=&quot;model&quot;&gt;view.product&lt;/field&gt;
    &lt;field name=&quot;mode&quot;&gt;primary&lt;/field&gt;
    &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt;
      &lt;qweb&gt;
       &lt;div id=&quot;pivot-container1&quot;&gt;&lt;/div&gt;
        &lt;script&gt;
            new WebDataRocks({
              &quot;container&quot;: &quot;#pivot-container1&quot;, 
              &quot;width&quot;: &quot;100%&quot;, 
              &quot;height&quot;: 430, 
              &quot;toolbar&quot;: true, 
              &quot;report&quot;: {
                &quot;dataSource&quot;: {
                  &quot;type&quot;: &quot;json&quot;, &quot;data&quot;: json_string
                  }, 
                  &quot;slice&quot;: {
                    &quot;rows&quot;: [{&quot;uniqueName&quot;: &quot;Product&quot;}], 
                    &quot;columns&quot;: [{&quot;uniqueName&quot;: &quot;[Measures]&quot;}], 
                    &quot;measures&quot;: [{&quot;uniqueName&quot;: &quot;Quantity&quot;, &quot;aggregation&quot;: &quot;sum&quot;}]
                  }
                }
             });
        &lt;/script&gt;
      &lt;/qweb&gt;
    &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  <p>how i get data from function push to xml view to render webdatarock excel</p>