Odoo Help

Welcome!

This community 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.

0

Error Occuring while creating products in openerp

By
Aneesh
on 6/25/13, 2:58 AM 1,393 views

I got an errror when I tried to create a product.

2013-06-25 10:25:53,447 8684 ←[1;31m←[1;49mERROR←[0m None openerp.osv.osv: Uncaught exception Traceback (most recent call last):   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 121, in wrapper

return f(self, dbname, *args, **kwargs)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 176, in execute

res = self.execute_cr(cr, uid, obj, method, *args, **kw)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 164, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\orm.py", line 1622, in default_get

for i in range(len(field_value)): TypeError: object of type 'bool' has no len() 2013-06-25 10:25:53,448 8684 ←[1;31m←[1;49mERROR←[0m None openerp.netsvc: object of type 'bool' has no len() Traceback (most recent call last):   File "C:\OpenErp\openerp\openobject-server\openerp\netsvc.py", line 361, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)   File "C:\OpenErp\openerp\openobject-server\openerp\service\web_services.py", line 585, in dispatch

res = fn(db, uid, *params)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 167, in execute_kw

return self.execute(db, uid, obj, method, *args, **kw or {})   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 121, in wrapper

return f(self, dbname, *args, **kwargs)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 176, in execute

res = self.execute_cr(cr, uid, obj, method, *args, **kw)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 164, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)   File "C:\OpenErp\openerp\openobject-server\openerp\osv\orm.py", line 1622, in default_get

for i in range(len(field_value)): TypeError: object of type 'bool' has no len()

c:\openerp\openerp\openobject-server\openerp\osv\orm.py(1622)default_get()
0

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 6/25/13, 3:28 AM

Hi Aneesh,

I am not sure which addons you are using, but your ORM file is not matching with my ORM file.

Make sure you have not changed anything in ORM file because I get for i in range(len(field_value)) on line no 1615 and it is for i in range(len(field_value or [])). Make sure you have updated your addons,server and webclient.

Or

You can have 7.0 addons from lauchpad or by this command in your space

bzr branch lp:openobject-addons/7.0

Thanks.

I have not changed anything in orm file

Aneesh
on 6/25/13, 3:55 AM

It is okay if you have not done any changes in ORM file but I checked my ORM file and it is somewhat different than yours. There are other options I have specified for your problem in my answer. Hope then it will work fine.

Keyur
on 6/25/13, 4:00 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/25/13, 2:58 AM
Seen: 1393 times
Last updated: 3/16/15, 8:10 AM