Odoo Help

1

error in upgrading module through openerp as below

By
arpit
on 4/10/14, 3:57 PM 1,093 views

traceback as:

Traceback (most recent call last):
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/module/module.py", line 513, in     button_immediate_upgrade
    return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/module/module.py", line 477, in     _button_immediate_function
    config = pool.get('res.config').next(cr, uid, [], context=context) or {}
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/res/res_config.py", line 116, in next
    return self._next(cr, uid, context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/res/res_config.py", line 100, in _next
    res = next.action_launch(context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/orm.py", line 377, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/ir/ir_actions.py", line 793, in action_launch
    res = self.pool.get(act_type['type']).read(cr, uid, wizard.action_id.id, [], context=context)
TypeError: 'bool' object has no attribute '__getitem__'
2014-04-10 17:51:51,087 8617 ERROR demo7 openerp.netsvc: 'bool' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/module/module.py", line 513, in     button_immediate_upgrade
    return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/module/module.py", line 477, in _button_immediate_function
    config = pool.get('res.config').next(cr, uid, [], context=context) or {}
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/res/res_config.py", line 116, in next
    return self._next(cr, uid, context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/res/res_config.py", line 100, in _next
    res = next.action_launch(context=context)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/osv/orm.py", line 377, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/home/arpit/workspace7.0/openerp/openerp-7.0/openerp/addons/base/ir/ir_actions.py", line 793, in action_launch
    res = self.pool.get(act_type['type']).read(cr, uid, wizard.action_id.id, [], context=context)
TypeError: 'bool' object has no attribute '__getitem__'

please show me your code.

Krupesh Laiya
on 4/11/14, 5:22 AM

Facing exactly the same error. Any hints on what went wrong?

René Schuster
on 8/19/14, 8:47 AM

Could you give any info what you tried to install?

klacus
on 8/19/14, 12:17 PM

In my case, there was a ir.actions.todo with no related action_id. I simply removed it.

René Schuster
on 8/20/14, 3:21 AM
0
klacus
On 8/19/14, 12:14 PM

Hi

this is not exists the return value is False >> wizard.action_id.id, that's why  no get_item...

May what you want to install is not works, I do not know what and where but something is wrong. :-)

dirty solutions:

You can deactivate the the last defected module from sql:

update ir_module_module set state='uninstalled' where name='defected_module_name'

restart the server.

update ir_module_module set state='installed' where name='defected_module_name'

And you can remove from Settings/ module...

sql you can use Psql, or phpPgAdmin, or command line in linux.

Good Luck!

B.R.

L.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 4/10/14, 3:57 PM
Seen: 1093 times
Last updated: 3/16/15, 8:10 AM