title: ODOO 11 report, object has no attribute 'report_action'
body: <p>Good day to all.
  Trying to make custom ODOO 11 report to save it to pdf.
  Report template(w/out any values, just for test purposes)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;odoo&gt;
      &lt;data&gt;
          &lt;template id="contract_template"&gt;
              &lt;t t-call="web.html_container"&gt;
                  &lt;div class="article"&gt;
                      &lt;h2&gt;Report title&lt;/h2&gt;
                      &lt;p&gt;Report 01&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/t&gt;
          &lt;/template&gt;
      &lt;/data&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p>If I call this template from XML like this:</p>
  
  <pre><code>&lt;report
     id="custom_template_1"
     model="res.partner.contract.wizard"
     string="Contract"
     report_type="qweb-pdf"
     name="client_contracts.contract_template"
     file="client_contracts.contract_template"
     menu="False"
  /&gt;
  </code></pre>
  
  <p>And add button to view it works fine - it generate report.
  But when I'm trying to generate this report with python code:</p>
  
  <pre><code>    def get_pdf_contract(self):
          context = self._generate_context()
          return self.env.ref('client_contracts.contract_template').report_action(self, data=context)
  </code></pre>
  
  <p>And add button to view:</p>
  
  <pre><code>&lt;button string="Test pdf x" type="object" name="get_pdf_contract" /&gt;
  </code></pre>
  
  <p>When I press this button there is an error:</p>
  
  <pre><code>AttributeError: 'ir.ui.view' object has no attribute 'report_action'
  </code></pre>
  
  <p>Anyone can give me helping hand with that? Thanx for any help.</p>