← Back to team overview

credativ team mailing list archive

[Bug 924222] [NEW] Impossible to create a new company with a logo

 

Public bug reported:

It is impossible to create a new company with a logo in v6.1 rc1
Revisions : 
* openobject-server : 3991
* openobject-web : 2081
* openobject-addons : 6453

Traceback :

ERROR:db.cursor:bad query: insert into "res_company" (id,"rml_header","security_lead","currency_id","logo","partner_id","expense_currency_exchange_account_id","name","parent_id","schedule_range","rml_header2","rml_header3","rml_header1","vat_check_vies","project_time_mode_id","rml_footer1","paypal_account","company_registry","paper_format","overdue_msg","income_currency_exchange_account_id",create_uid,create_date) values (10,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,now())
Traceback (most recent call last):
  File "/usr/src/openobject-server/openerp/sql_db.py", line 214, in execute
    res = self._obj.execute(query, params)
TypeError: can't escape non-string object
[2012-01-31 10:41:51,180][?] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/src/openobject-server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/src/openobject-server/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/src/openobject-server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/src/openobject-server/openerp/addons/base/res/res_company.py", line 236, in create
    company_id = super(res_company, self).create(cr, uid, vals, context=context)
  File "/usr/src/openobject-server/openerp/osv/orm.py", line 4154, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/usr/src/openobject-server/openerp/sql_db.py", line 152, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/src/openobject-server/openerp/sql_db.py", line 214, in execute
    res = self._obj.execute(query, params)
TypeError: can't escape non-string object

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/924222

Title:
  Impossible to create a new company with a logo

Status in OpenERP Server:
  New

Bug description:
  It is impossible to create a new company with a logo in v6.1 rc1
  Revisions : 
  * openobject-server : 3991
  * openobject-web : 2081
  * openobject-addons : 6453

  Traceback :

  ERROR:db.cursor:bad query: insert into "res_company" (id,"rml_header","security_lead","currency_id","logo","partner_id","expense_currency_exchange_account_id","name","parent_id","schedule_range","rml_header2","rml_header3","rml_header1","vat_check_vies","project_time_mode_id","rml_footer1","paypal_account","company_registry","paper_format","overdue_msg","income_currency_exchange_account_id",create_uid,create_date) values (10,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,now())
  Traceback (most recent call last):
    File "/usr/src/openobject-server/openerp/sql_db.py", line 214, in execute
      res = self._obj.execute(query, params)
  TypeError: can't escape non-string object
  [2012-01-31 10:41:51,180][?] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/usr/src/openobject-server/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/src/openobject-server/openerp/osv/osv.py", line 175, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/src/openobject-server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/src/openobject-server/openerp/addons/base/res/res_company.py", line 236, in create
      company_id = super(res_company, self).create(cr, uid, vals, context=context)
    File "/usr/src/openobject-server/openerp/osv/orm.py", line 4154, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/usr/src/openobject-server/openerp/sql_db.py", line 152, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/src/openobject-server/openerp/sql_db.py", line 214, in execute
      res = self._obj.execute(query, params)
  TypeError: can't escape non-string object

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


Follow ups

References