title: Download document created using python-docx
body: <p>I'm trying to export word report in Odoo, i am using python-docx library,</p>
  
  <p>Code:</p>
  
  <pre><code>document = Document()            
  
  records = result
  
  table = document.add_table(rows=0, cols=4,style='Table Grid')  
  for att  in records:
      row_cells = table.add_row().cells
      cnt = 0  
      for attdet  in att:
          #row_cells[0].style('text-align: center;vertical-align: middle;') 
          if (cnt == 0):
              row_cells[0].add_paragraph(attdet.serial_no, 'List Bullet')#[0].text = attdet.serial_nobold
              row_cells[1].add_paragraph(attdet.name, 'List Bullet')#[1].text = attdet.name
          else:
              row_cells[2].add_paragraph(attdet.serial_no, 'List Bullet')#.text = attdet.serial_no
              row_cells[3].add_paragraph(attdet.name, 'List Bullet')#.text = attdet.name
          cnt = cnt+1
  
  document.add_page_break()
  
  pdfhttpheaders = [('Content-Type','application/msword')]
  return request.make_response(document, headers=pdfhttpheaders)
  </code></pre>
  
  <p>Instead of saving document into folder, i need to download this word document on button click,</p>
  
  <p>I am getting below error,</p>
  
  <pre><code>AttributeError: 'JsonRequest' object has no attribute 'make_response'
  </code></pre>
  
  <p>Please anyone guide me to resolve this error.</p>