title: odoo import .xlsx sale_order, purchase_order
body: <p>what I'm trying to do here is importing an .xlsx to <code>sale_order</code>
  the code below explains how i did it using csv.DictReader(). in order to get that to work on .xlsx file I found <a href="https://gist.github.com/mdellavo/639082" rel="nofollow noreferrer">XLS to Dict Reader using xlrd</a>, and I have no idea how to implement that.</p>
  
  <p>ps: I'm new with python and odoo 10</p>
  
  <pre><code>file_data = fields.Binary('Archive', required=True,)
  
  def import_button(self):
      file_path = tempfile.gettempdir()+'/file.csv'
      data = self.file_data
      f = open(file_path,'wb')
      f.write(data.decode('base64'))
      f.close() 
      archive = csv.DictReader(open(file_path),delimiter=';')
  
      archive_lines = []
      for line in archive:
          archive_lines.append(line)
  </code></pre>
  
  <blockquote>
    <p>Edit: i did use that function <code>XLSDictReader</code> : </p>
  </blockquote>
  
  <pre><code>&gt; archive = XLSDictReader(open(file_path))
  </code></pre>
  
  <blockquote>
    <p>and I got this error <code>'import.purchase.order' object has no attribute 'fileno'</code></p>
  </blockquote>