_static_search() got an unexpected keyword argument 'context'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Agile Methodology |
Fix Released
|
Medium
|
Joël Grand-Guillaume @ camptocamp |
Bug Description
Testing the module, I get the following error:
Environment Information :
System : Windows-32bit-SP2
OS Name : nt
Operating System Release :
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : es_ES.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.9
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/
result = LocalService(
File "/usr/lib/
return getattr(self, method)(*params)
File "/usr/lib/
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/
res2 = self._columns[
File "/usr/lib/
ids2 = obj.pool.
File "/usr/lib/
(qu1, qu2, tables) = self._where_
File "/usr/lib/
e.parse(cr, user, self, context)
File "/usr/lib/
subexp = field.search(cr, uid, table, left, [self.__exp[i]], context=context)
File "/usr/lib/
return self._fnct_
TypeError: _static_search() got an unexpected keyword argument 'context'
Details:
New Draft MODEC Project, in Project Type, new:
Name: Server Installation
Steps, new:
Name: Initial Configuration
Project type: Server Installation (isn't this redundant?)
New task:
Functional block, new:
Name: Server
Version: 5.0.9
Task, new task:
When I focus on Step, i get the error.
No information pre-loaded in a new 5.0.7 database.
I think this bug is because in the declaration of _static_search function isn't defined the context variable.
This can be solved by adding the context variable to the function definition in project.py file of the addon.
def _static_ search( self, cursor, user, obj, name, args, context = {})