← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697435] [NEW] [6.0rc2] Some models fail in fields_view_get()

 

Public bug reported:

I just grabbed rc2 from bazaar. Some models, when you double-click on
them in the GUI client, throw the following error:

[2011-01-04 16:07:51,657][rc2test] ERROR:db.cursor:Programming error: operator does not exist: integer = record
LINE 1: ...,id,type,inherit_id,model FROM ir_ui_view WHERE id=(99, E'ir...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
, in query SELECT arch,name,field_parent,id,type,inherit_id,model FROM ir_ui_view WHERE id=%s AND model=%s
[2011-01-04 16:07:51,658][rc2test] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/openerp/server/bin/osv/orm.py", line 1551, in fields_view_get
    cr.execute(query, params)
  File "/usr/lib/openerp/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/openerp/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = record
LINE 1: ...,id,type,inherit_id,model FROM ir_ui_view WHERE id=(99, E'ir...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

The params:
    ((99, u'ir.module.module.list.select'), 'ir.module.module')
clearly this should just be 99.

You can get this by trying to run Administration -> Modules -> Modules
Interestingly, if you run Update Modules List then choose to open the modules it works.
I've also seen this with an HR model and one of my own.

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: rc2

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697435

Title:
  [6.0rc2] Some models fail in fields_view_get()

Status in OpenObject Server:
  New

Bug description:
  I just grabbed rc2 from bazaar. Some models, when you double-click on them in the GUI client, throw the following error:

[2011-01-04 16:07:51,657][rc2test] ERROR:db.cursor:Programming error: operator does not exist: integer = record
LINE 1: ...,id,type,inherit_id,model FROM ir_ui_view WHERE id=(99, E'ir...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
, in query SELECT arch,name,field_parent,id,type,inherit_id,model FROM ir_ui_view WHERE id=%s AND model=%s
[2011-01-04 16:07:51,658][rc2test] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/openerp/server/bin/osv/orm.py", line 1551, in fields_view_get
    cr.execute(query, params)
  File "/usr/lib/openerp/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/openerp/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = record
LINE 1: ...,id,type,inherit_id,model FROM ir_ui_view WHERE id=(99, E'ir...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

The params:
    ((99, u'ir.module.module.list.select'), 'ir.module.module')
clearly this should just be 99.

You can get this by trying to run Administration -> Modules -> Modules
Interestingly, if you run Update Modules List then choose to open the modules it works.
I've also seen this with an HR model and one of my own.





Follow ups

References