On Sat, Jan 2, 2010 at 3:10 AM, Sebastien LANGE
<[email protected]> wrote:
>
> Add "import dispatch_memo" in __init__.py for loading the new object.
Hah! Yes that works thank you. I now have the menuitem, model, action
and view in the database.
So on to the next error :-)
I am now getting this stacktrace:
Traceback (most recent call last):
File "/usr/lib/openerp-server/netsvc.py", line 231, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/openerp-server/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/usr/lib/openerp-server/service/web_services.py", line 496, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/openerp-server/osv/osv.py", line 59, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/openerp-server/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/openerp-server/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/openerp-server/osv/orm.py", line 1092, in fields_view_get
xarch, xfields = self.__view_look_dom_arch(cr, user, doc, view_id,
context=context)
File "/usr/lib/openerp-server/osv/orm.py", line 897, in __view_look_dom_arch
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 "/usr/lib/openerp-server/sql_db.py", line 76, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/openerp-server/sql_db.py", line 118, in execute
res = self._obj.execute(query, params)
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.
So it's picking up 'false' for the view_id. Why?
The ids specified in the view.xml are text names but in the database I
only see integers. Are they mapped somewhere or do the names get
discarded?
Martin
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users