← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 681766] [NEW] v5 view editor error NoneType object is not iterable

 

Public bug reported:

Hi,
windows vista web revision 2949,

I do customize view product.product,
product.normal.form
modify
field name ean13 clic +
newline update
on newline clic +
new field

and I have this error :

d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\base\meta.py in wrapper(self=M2M, *args=(), **kw={'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...})
   38             self.__initstack.append(1)
   39 
   40         res = func(self, *args, **kw)
   41         try:
   42             self.__initstack.pop()
res undefined, func = <function __init__ at 0x028EDCF0>, self = M2M, args = (), kw = {'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...}
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\many2many.py in __init__(self=M2M, **attrs={'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...})
  163         self.screen = Screen(current, prefix=self.name, views_preloaded=view,
  164                              editable=False, readonly=self.editable,
  165                              selectable=selectable, nolinks=self.link)
  166         
  167         if view_type == 'tree':
selectable = 2, nolinks undefined, self = M2M, self.link = 1
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\base\meta.py in wrapper(self=Screen, *args=({'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}},), **kw={'editable': False, 'nolinks': 1, 'prefix': u'groups', 'readonly': True, 'selectable': 2, 'views_preloaded': {}})
   38             self.__initstack.append(1)
   39 
   40         res = func(self, *args, **kw)
   41         try:
   42             self.__initstack.pop()
res undefined, func = <function __init__ at 0x028ED670>, self = Screen, args = ({'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}},), kw = {'editable': False, 'nolinks': 1, 'prefix': u'groups', 'readonly': True, 'selectable': 2, 'views_preloaded': {}}
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'groups', name='', views_preloaded={}, hastoolbar=False, editable=False, readonly=True, selectable=2, nolinks=1)
  125 
  126         if self.view_mode:
  127             self.add_view_id(self.view_id, self.view_type)
  128 
  129     def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = False, self.view_type = 'tree'
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
  141         terp_params = getattr(cherrypy.request, 'terp_params', {})
  142         if view_type == 'tree':
  143             domain = filter(lambda val:val not in self.domain, terp_params.get('_terp_search_domain', []))
  144 
  145         for dom in domain:
domain = [], builtin filter = <built-in function filter>, val undefined, self = Screen, self.domain = [], terp_params = {'_terp_view_type': 'form', '_terp_offset': 0, '...del': 'product.product'}, '_terp_view_ids': None}, terp_params.get = <built-in method get of TinyDict object at 0x02C52F08>

<type 'exceptions.TypeError'>: 'NoneType' object is not iterable
      args = ("'NoneType' object is not iterable",)
      message = "'NoneType' object is not iterable" 

Bye

** Affects: openobject-client-web
     Importance: Undecided
         Status: New

-- 
v5 view editor error NoneType object is not iterable
https://bugs.launchpad.net/bugs/681766
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: New

Bug description:
Hi,
windows vista web revision 2949,

I do customize view product.product,
product.normal.form
modify
field name ean13 clic +
newline update
on newline clic +
new field

and I have this error :

d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\base\meta.py in wrapper(self=M2M, *args=(), **kw={'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...})
   38             self.__initstack.append(1)
   39 
   40         res = func(self, *args, **kw)
   41         try:
   42             self.__initstack.pop()
res undefined, func = <function __init__ at 0x028EDCF0>, self = M2M, args = (), kw = {'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...}
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\many2many.py in __init__(self=M2M, **attrs={'colspan': u'4', 'context': u'', 'domain': [], 'editable': True, 'link': 1, 'model': 'ir.model.fields', 'name': u'groups', 'nolabel': u'1', 'prefix': '', 'relation': u'res.groups', ...})
  163         self.screen = Screen(current, prefix=self.name, views_preloaded=view,
  164                              editable=False, readonly=self.editable,
  165                              selectable=selectable, nolinks=self.link)
  166         
  167         if view_type == 'tree':
selectable = 2, nolinks undefined, self = M2M, self.link = 1
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\base\meta.py in wrapper(self=Screen, *args=({'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}},), **kw={'editable': False, 'nolinks': 1, 'prefix': u'groups', 'readonly': True, 'selectable': 2, 'views_preloaded': {}})
   38             self.__initstack.append(1)
   39 
   40         res = func(self, *args, **kw)
   41         try:
   42             self.__initstack.pop()
res undefined, func = <function __init__ at 0x028ED670>, self = Screen, args = ({'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}},), kw = {'editable': False, 'nolinks': 1, 'prefix': u'groups', 'readonly': True, 'selectable': 2, 'views_preloaded': {}}
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'groups', name='', views_preloaded={}, hastoolbar=False, editable=False, readonly=True, selectable=2, nolinks=1)
  125 
  126         if self.view_mode:
  127             self.add_view_id(self.view_id, self.view_type)
  128 
  129     def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = False, self.view_type = 'tree'
 d:\OpenERP AllInOne\Web\python25\lib\site-packages\openerp_web-5.0.15-py2.5.egg\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
  141         terp_params = getattr(cherrypy.request, 'terp_params', {})
  142         if view_type == 'tree':
  143             domain = filter(lambda val:val not in self.domain, terp_params.get('_terp_search_domain', []))
  144 
  145         for dom in domain:
domain = [], builtin filter = <built-in function filter>, val undefined, self = Screen, self.domain = [], terp_params = {'_terp_view_type': 'form', '_terp_offset': 0, '...del': 'product.product'}, '_terp_view_ids': None}, terp_params.get = <built-in method get of TinyDict object at 0x02C52F08>

<type 'exceptions.TypeError'>: 'NoneType' object is not iterable
      args = ("'NoneType' object is not iterable",)
      message = "'NoneType' object is not iterable" 

Bye





Follow ups

References