title: How to create excel/xlsx report from wizard in odoo 14
body: <p>how to generate xlsx report from wizard in odoo 14.
  I have made a button in wizard</p>
  <p>in wizard.py</p>
  <pre><code> classReceivedReportWizard(models.TransientModel):
          _name = 'po.goods.report.wizard'
  
    
  
          def print_xls(self):
              context = self._context
              data = {
              'ids': self.ids,
              'model': self._name,}
  
          return {
              'type': 'ir.actions.report',
              'data': {'model': 'po.goods.report.wizard',
                       'options': json.dumps(data, default=date_utils.json_default),
                       'output_format': 'xlsx',
                       'report_name': 'product receiving statement',
                       },
              'report_type': 'xlsx'
          }  
  </code></pre>
  <p>in xml</p>
  <pre><code>&lt;record id=&quot;goods_received_details_xlsx&quot; model=&quot;ir.actions.report&quot;&gt;
          &lt;field name=&quot;name&quot;&gt;product receiving report&lt;/field&gt;
          &lt;field name=&quot;model&quot;&gt;po.goods.report.wizard&lt;/field&gt;
          &lt;field name=&quot;report_name&quot;&gt;goods_received_report.report_goods_received_xlsx&lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  <p>in report.py</p>
  <pre><code>_name = 'report.goods_received_report.report_goods_received_xlsx'
      _inherit = 'report.report_xlsx.abstract'
  
  
      def generate_xlsx_report(self, workbook, data, vendors):
          format0 = workbook.add_format({'font_size': 14, 'align': 'vcenter', 'bold': True})
          format1 = workbook.add_format({'font_size': 11, 'align': 'vcenter', 'bold': True})
          format2 = workbook.add_format({'font_size': 8, 'align': 'vcenter', })
          sheet = workbook.add_worksheet('Student Data Card')
          sheet.write(2, 4, 'test Details', format0)
  </code></pre>
  <p>please suggest how to get excel report in odoo14</p>