← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 616436] Re: c2c_webkit_report: problems deleting reports

 

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
c2c_webkit_report: problems deleting reports
https://bugs.launchpad.net/bugs/616436
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released

Bug description:
version 5.0.12 (ubuntu)

You can reproduce this error by deleting existing report from "ir.act.report.xml". I did it with "stock.picking.list" and then i get this error executing any stock.picking view:

"AttributeError: 'bool' object has no attribute 'split'"


Environment Information : 
System : Linux-2.6.24-27-generic-i686-with-debian-lenny-sid
OS Name : posix
LSB Version:	core-2.0-ia32:core-3.0-ia32:core-3.1-ia32:core-3.2-ia32:core-4.0-ia32:core-2.0-noarch:core-3.0-noarch:core-3.1-noarch:core-3.2-noarch:core-4.0-noarch:cxx-3.0-ia32:cxx-3.1-ia32:cxx-3.2-ia32:cxx-4.0-ia32:cxx-3.0-noarch:cxx-3.1-noarch:cxx-3.2-noarch:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.2-ia32:desktop-4.0-ia32:desktop-3.1-noarch:desktop-3.2-noarch:desktop-4.0-noarch:graphics-2.0-ia32:graphics-3.0-ia32:graphics-3.1-ia32:graphics-3.2-ia32:graphics-4.0-ia32:graphics-2.0-noarch:graphics-3.0-noarch:graphics-3.1-noarch:graphics-3.2-noarch:graphics-4.0-noarch:languages-3.2-ia32:languages-4.0-ia32:languages-3.2-noarch:languages-4.0-noarch:multimedia-3.2-ia32:multimedia-4.0-ia32:multimedia-3.2-noarch:multimedia-4.0-noarch:printing-3.2-ia32:printing-4.0-ia32:printing-3.2-noarch:printing-4.0-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 8.04.4 LTS
Release:	8.04
Codename:	hardy
Operating System Release : 2.6.24-27-generic
Operating System Version : #1 SMP Wed Mar 24 10:04:52 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : es_ES.UTF8
Python Version : 2.5.2
OpenERP-Client Version : 5.0.12
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/openerp/50/server/bin/netsvc.py", line 247, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/openerp/50/server/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/openerp/50/server/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/openerp/50/server/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/openerp/50/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/openerp/50/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/openerp/50/server/bin/osv/orm.py", line 1386, in fields_view_get
    context)
  File "/openerp/50/server/bin/addons/base/ir/ir_values.py", line 225, in get
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/openerp/50/server/bin/addons/base/ir/ir_values.py", line 225, in <lambda>
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/openerp/50/server/bin/addons/base/ir/ir_values.py", line 211, in _result_get
    datas = self.pool.get(model).read(cr, uid, [id], fields, context)
  File "/openerp/50/server/bin/osv/orm.py", line 2228, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/openerp/50/server/bin/osv/orm.py", line 2360, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/openerp/50/server/bin/osv/fields.py", line 659, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/openerp/50/server/bin/osv/fields.py", line 872, in _fnct_read
    int(prop.value.split(',')[1])) or False
AttributeError: 'bool' object has no attribute 'split'

* without c2c_webkit_report installed, deleted report quietly disappears and the views are running without errors.