Error in the 'name' column
Hi Every one,
I have experienced that, Whenever I will not give the first column as 'name' openERP give me an error. It is not mandatory, but mostly the error generated is due to this. I have to change the name of the column to 'name' and every thing is alright. Situations exists, when we do not have a column 'name' in the python object. Is it a valid requirement in OpenERP. I understand that certain methods such as name_search() and others are called on the field 'name'
Please shed some light.
Here is the error:
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-22-generic
Operating System Version : #60-Ubuntu SMP Thu May 27 00:22:23 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.11
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = LocalService(
File "/home/
return getattr(self, method)(*params)
File "/home/
res = service.execute(db, uid, object, method, *args)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
xarch, xfields = self.__
File "/home/
cr.execute('select name, model from ir_ui_view where (id=%s or inherit_id=%s) and arch like %s', (view_id, view_id, '%%%s%%' % field))
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: operator does not exist: integer = boolean
LINE 1: select name, model from ir_ui_view where (id=false or inheri...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask mm alam for more information if necessary.