Cancelling a new object, from a empty tree view, crash

Bug #464718 reported by ginsmar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Jiten (OpenERP)

Bug Description

Hi!
with last bazaar stable version and a new database.
if select any tree view, for example Product -> Products (the list is empty), select new, and then cancel, without save.
You'll get:
I suppose that is for the parameter [''] of read method.

[2009-10-30 13:27:04,359] DEBUG_RPC:service:'object'
[2009-10-30 13:27:04,360] DEBUG_RPC:method:'execute'
[2009-10-30 13:27:04,364] DEBUG_RPC:params:[01]: ('test_empty',
[2009-10-30 13:27:04,364] DEBUG_RPC:params:[02]: 1,
[2009-10-30 13:27:04,365] DEBUG_RPC:params:[03]: '231425',
[2009-10-30 13:27:04,365] DEBUG_RPC:params:[04]: 'product.product',
[2009-10-30 13:27:04,365] DEBUG_RPC:params:[05]: 'read',
[2009-10-30 13:27:04,366] DEBUG_RPC:params:[06]: [''],
[2009-10-30 13:27:04,366] DEBUG_RPC:params:[07]: ['virtual_available',
[2009-10-30 13:27:04,366] DEBUG_RPC:params:[08]: 'name',
[2009-10-30 13:27:04,367] DEBUG_RPC:params:[09]: 'price',
[2009-10-30 13:27:04,367] DEBUG_RPC:params:[10]: 'standard_price',
[2009-10-30 13:27:04,367] DEBUG_RPC:params:[11]: 'lst_price',
[2009-10-30 13:27:04,368] DEBUG_RPC:params:[12]: 'uom_id',
[2009-10-30 13:27:04,368] DEBUG_RPC:params:[13]: 'state',
[2009-10-30 13:27:04,368] DEBUG_RPC:params:[14]: 'default_code',
[2009-10-30 13:27:04,369] DEBUG_RPC:params:[15]: 'qty_available',
[2009-10-30 13:27:04,369] DEBUG_RPC:params:[16]: 'variants',
[2009-10-30 13:27:04,369] DEBUG_RPC:params:[17]: '__last_update'],
[2009-10-30 13:27:04,370] DEBUG_RPC:params:[18]: {'_terp_view_name': u'Products',
[2009-10-30 13:27:04,370] DEBUG_RPC:params:[19]: 'active_id': 113,
[2009-10-30 13:27:04,370] DEBUG_RPC:params:[20]: 'active_ids': [113],
[2009-10-30 13:27:04,371] DEBUG_RPC:params:[21]: 'client': 'web',
[2009-10-30 13:27:04,371] DEBUG_RPC:params:[22]: 'lang': u'en_US',
[2009-10-30 13:27:04,371] DEBUG_RPC:params:[23]: 'tz': False})
[2009-10-30 13:27:04,382] DEBUG:sql:bad query: SELECT "default_code","variants",COALESCE(write_date, create_date, now())::timestamp AS __last_update,"product_tmpl_id",id FROM "product_product" WHERE id IN (E'') ORDER BY id
[2009-10-30 13:27:04,383] DEBUG:sql:la sintaxis de entrada no es válida para integer: «»
bzr: ERROR: Not a branch: "/usr/lib/python2.5/site-packages/openerp-server/".
No LSB modules are available.
[2009-10-30 13:27:05,833] ERROR:web-services:[01]:
[2009-10-30 13:27:05,835] ERROR:web-services:[02]: Environment Information :
[2009-10-30 13:27:05,835] ERROR:web-services:[03]: System : Linux-2.6.27-15-generic-i686-with-debian-lenny-sid
[2009-10-30 13:27:05,835] ERROR:web-services:[04]: OS Name : posix
[2009-10-30 13:27:05,836] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2009-10-30 13:27:05,836] ERROR:web-services:[06]: Description: Ubuntu 8.10
[2009-10-30 13:27:05,837] ERROR:web-services:[07]: Release: 8.10
[2009-10-30 13:27:05,837] ERROR:web-services:[08]: Codename: intrepid
[2009-10-30 13:27:05,838] ERROR:web-services:[09]: Operating System Release : 2.6.27-15-generic
[2009-10-30 13:27:05,838] ERROR:web-services:[10]: Operating System Version : #1 SMP Tue Oct 20 06:52:09 UTC 2009
[2009-10-30 13:27:05,839] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2009-10-30 13:27:05,839] ERROR:web-services:[12]: Operating System Locale : es_ES.UTF8
[2009-10-30 13:27:05,840] ERROR:web-services:[13]: Python Version : 2.5.2
[2009-10-30 13:27:05,840] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.6
[2009-10-30 13:27:05,841] ERROR:web-services:[15]: Last revision No. & ID :
[2009-10-30 13:27:05,841] ERROR:web-services:[16]: Traceback (most recent call last):
[2009-10-30 13:27:05,841] ERROR:web-services:[17]: File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 59, in wrapper
[2009-10-30 13:27:05,842] ERROR:web-services:[18]: return f(self, dbname, *args, **kwargs)
[2009-10-30 13:27:05,842] ERROR:web-services:[19]: File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 118, in execute
[2009-10-30 13:27:05,843] ERROR:web-services:[20]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2009-10-30 13:27:05,843] ERROR:web-services:[21]: File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 110, in execute_cr
[2009-10-30 13:27:05,844] ERROR:web-services:[22]: return getattr(object, method)(cr, uid, *args, **kw)
[2009-10-30 13:27:05,844] ERROR:web-services:[23]: File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2142, in read
[2009-10-30 13:27:05,845] ERROR:web-services:[24]: result = self._read_flat(cr, user, select, fields, context, load)
[2009-10-30 13:27:05,845] ERROR:web-services:[25]: File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2198, in _read_flat
[2009-10-30 13:27:05,845] ERROR:web-services:[26]: self._order), sub_ids)
[2009-10-30 13:27:05,846] ERROR:web-services:[27]: File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 76, in wrapper
[2009-10-30 13:27:05,846] ERROR:web-services:[28]: return f(self, *args, **kwargs)
[2009-10-30 13:27:05,847] ERROR:web-services:[29]: File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 120, in execute
[2009-10-30 13:27:05,847] ERROR:web-services:[30]: res = self._obj.execute(query, params)
[2009-10-30 13:27:05,848] ERROR:web-services:[31]: DataError: la sintaxis de entrada no es válida para integer: «»
[2009-10-30 13:27:05,849] DEBUG_RPC:exception:u'la sintaxis de entrada no es v\xe1lida para integer: \xab\xbb\n'

Changed in openobject-client-web:
status: New → Confirmed
assignee: nobody → Jra (Open ERP) (jra-openerp)
Revision history for this message
Jiten (OpenERP) (jiten-openerp) wrote :

Take update branch, Its modify the code.

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → Fix Released
milestone: none → 5.0.13
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.