c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01236
[Bug 666237] Re: Error when add new categories to a partner
** Changed in: openobject-addons
Status: New => Confirmed
--
Error when add new categories to a partner
https://bugs.launchpad.net/bugs/666237
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: Confirmed
Bug description:
+ I selected a partner
+ I clicked on "Edit" to edit the partner.
+ I clicked on tab "Categories".
+ I clicked on '+' button to add new categories.
The error displayed as follows:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 247, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 76, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/audittrail/audittrail.py", line 340, in execute
return fct_src(db, uid, passwd, model, method, *args)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 577, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1415, in search_count
res = self.search(cr, user, args, context=context, count=True)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 3029, in search
(qu1, qu2, tables) = self._where_calc(cr, user, args, context=context)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2992, in _where_calc
args = args[:]
TypeError: 'bool' object is unsubscriptable
I returned to edit screen and viewd source. The source of '+' button as follows:
<td width="32" style="padding-left: 2px;">
<button type="button" id='_category_id_button1' domain="'category' in context and [('name','=',context['category'])]" context="{}" onclick="open_search_window('res.partner.category', getNodeAttribute(this, 'domain'), getNodeAttribute(this, 'context'), 'category_id', 2, getElement('category_id_set').value);">
<img width="16" height="16" src="/static/images/stock/gtk-add.png"/>
</button>
</td>
In another 'good' database (categories adding is not error), the source viewed as follows:
<td width="32" style="padding-left: 2px;">
<button type="button" id='_category_id_button1' domain="[]" context="{}" onclick="open_search_window('res.partner.category', getNodeAttribute(this, 'domain'), getNodeAttribute(this, 'context'), 'category_id', 2, getElement('category_id_set').value);">
<img width="16" height="16" src="/static/images/stock/gtk-add.png"/>
</button>
</td>
I am using OpenERP 5.0.12.