*** This bug is a duplicate of bug 1225107 ***
    https://bugs.launchpad.net/bugs/1225107

** This bug has been marked a duplicate of bug 1225107
   [7.0] [document] error when writing a document to a static directory from FTP

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1228819

Title:
  [7.0] "TypeError: 'NoneType' object is not iterable" when upload
  (filezilla) a second file

Status in OpenERP Addons (modules):
  New

Bug description:
  In a clear installation on Ubuntu 12.4.3 and after install just project, 
knowledge managment and crm modules, whwn I try to upload a second file, ftp 
server is dead.
  Always, first file uploaded, rus well.

  2013-09-22 10:11:05,842 740 ERROR alcalaing 
openerp.addons.document_ftp.ftpserver: Traceback (most recent call last):
    File "/usr/lib/python2.7/asyncore.py", line 83, in read
      obj.handle_read_event()
    File "/usr/lib/python2.7/asyncore.py", line 444, in handle_read_event
      self.handle_read()
    File 
"/usr/lib/pymodules/python2.7/openerp/addons/document_ftp/ftpserver/ftpserver.py",
 line 657, in handle_read
      chunk = self.recv(self.ac_in_buffer_size)
    File "/usr/lib/python2.7/asyncore.py", line 388, in recv
      self.handle_close()
    File 
"/usr/lib/pymodules/python2.7/openerp/addons/document_ftp/ftpserver/ftpserver.py",
 line 795, in handle_close
      self.close()
    File 
"/usr/lib/pymodules/python2.7/openerp/addons/document_ftp/ftpserver/ftpserver.py",
 line 801, in close
      self.file_obj.close()
    File "/usr/lib/pymodules/python2.7/openerp/addons/document/document.py", 
line 2111, in close
      registry.get('ir.attachment').write(cr, 1, par.file_id, {'datas': data})
    File 
"/usr/lib/pymodules/python2.7/openerp/addons/base_calendar/crm_meeting.py", 
line 160, in write
      return super(ir_attachment, self).write(cr, uid, ids, vals, 
context=context)
    File "/usr/lib/pymodules/python2.7/openerp/addons/document/document.py", 
line 132, in write
      return super(document_file, self).write(cr, uid, ids, vals, context)
    File 
"/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_attachment.py", line 
268, in write
      self.check(cr, uid, ids, 'write', context=context, values=vals)
    File "/usr/lib/pymodules/python2.7/openerp/addons/document/document.py", 
line 78, in check
      cr.execute('SELECT DISTINCT parent_id from ir_attachment WHERE id in %s 
AND parent_id is not NULL', (tuple(ids),))
  TypeError: 'long' object is not iterable

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1228819/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to