← Back to team overview

openerp-india team mailing list archive

[Bug 1064890] Re: Attachment can't be added

 

** Description changed:

  hello,
-          
-           goto Home -> feed -> Inbox 
  
-         click on attachment button gives this traceback
+           goto Home -> feed -> Inbox
+ 
+         click on attachment button gives this traceback
  
  Traceback (most recent call last):
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/netsvc.py", line 362, in dispatch_rpc
-     result = ExportService.getService(service_name).dispatch(method, params)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/service/web_services.py", line 585, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 167, in execute_kw
-     return self.execute(db, uid, obj, method, *args, **kw or {})
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 121, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 176, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 319, in message_read
-     result.append(self._message_dict_get(cr, uid, msg, context=context))
-   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 184, in _message_dict_get
-     vote_ids = self.pool.get('res.users').name_get(cr, SUPERUSER_ID, [user.id for user in msg.vote_user_ids], context=context)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 480, in __getattr__
-     return self[name]
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 395, in __getitem__
-     field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
-   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 512, in read
-     res = super(mail_message, self).read(cr, uid, ids, fields=fields, context=context, load=load)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3491, in read
-     result = self._read_flat(cr, user, select, fields, context, load)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3611, in _read_flat
-     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/fields.py", line 727, in get
-     cr.execute(query, [tuple(ids),] + where_params)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 152, in wrapper
-     return f(self, *args, **kwargs)
-   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 212, in execute
-     res = self._obj.execute(query, params)
-   File "/usr/lib/python2.6/dist-packages/psycopg2/extensions.py", line 124, in getquoted
-     qobjs = [str(o.getquoted()) for o in pobjs]
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/netsvc.py", line 362, in dispatch_rpc
+     result = ExportService.getService(service_name).dispatch(method, params)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/service/web_services.py", line 585, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 167, in execute_kw
+     return self.execute(db, uid, obj, method, *args, **kw or {})
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 121, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 176, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 319, in message_read
+     result.append(self._message_dict_get(cr, uid, msg, context=context))
+   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 184, in _message_dict_get
+     vote_ids = self.pool.get('res.users').name_get(cr, SUPERUSER_ID, [user.id for user in msg.vote_user_ids], context=context)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 480, in __getattr__
+     return self[name]
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 395, in __getitem__
+     field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
+   File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 512, in read
+     res = super(mail_message, self).read(cr, uid, ids, fields=fields, context=context, load=load)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3491, in read
+     result = self._read_flat(cr, user, select, fields, context, load)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3611, in _read_flat
+     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/fields.py", line 727, in get
+     cr.execute(query, [tuple(ids),] + where_params)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 152, in wrapper
+     return f(self, *args, **kwargs)
+   File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 212, in execute
+     res = self._obj.execute(query, params)
+   File "/usr/lib/python2.6/dist-packages/psycopg2/extensions.py", line 124, in getquoted
+     qobjs = [str(o.getquoted()) for o in pobjs]
  AttributeError: 'str' object has no attribute 'getquoted'
  
- 
  Thanks,
-  HIP.
+  HIP.

-- 
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/1064890

Title:
  Attachment can't be added

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  hello,

            goto Home -> feed -> Inbox

          click on attachment button gives this traceback

  Traceback (most recent call last):
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/netsvc.py", line 362, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/service/web_services.py", line 585, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 319, in message_read
      result.append(self._message_dict_get(cr, uid, msg, context=context))
    File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 184, in _message_dict_get
      vote_ids = self.pool.get('res.users').name_get(cr, SUPERUSER_ID, [user.id for user in msg.vote_user_ids], context=context)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 480, in __getattr__
      return self[name]
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 395, in __getitem__
      field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
    File "/home/openerp/Latest-RDTool/openerp-tools/addons/trunk-test-fix-rga/mail/mail_message.py", line 512, in read
      res = super(mail_message, self).read(cr, uid, ids, fields=fields, context=context, load=load)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3491, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/orm.py", line 3611, in _read_flat
      res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/osv/fields.py", line 727, in get
      cr.execute(query, [tuple(ids),] + where_params)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 152, in wrapper
      return f(self, *args, **kwargs)
    File "/home/openerp/Latest-RDTool/openerp-tools/server/trunk/openerp/sql_db.py", line 212, in execute
      res = self._obj.execute(query, params)
    File "/usr/lib/python2.6/dist-packages/psycopg2/extensions.py", line 124, in getquoted
      qobjs = [str(o.getquoted()) for o in pobjs]
  AttributeError: 'str' object has no attribute 'getquoted'

  Thanks,
   HIP.

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


References