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

Bug #1228819 reported by Tomás Pascual
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

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 post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.