c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #30906
[Bug 828009] Re: "id" field in a view
In fact I realized it works if I add the following in '_columns' of a
osv object:
'id':fields.integer('ID')
However, if I do the same in a osv_memory object, everything crashes!
The "browse" method does not work properly anymore, and neither does the
"read" method... If I use the field "id" without declaring it, the
viewhas several issues.
** Changed in: openobject-server
Status: Incomplete => New
--
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/828009
Title:
"id" field in a view
Status in OpenERP Server:
New
Bug description:
Hi!
I would like to use the "id" field for domain purposes in a view. In
__view_look_dom_arch of orm.py file I read this (l. 1666):
# sometime, the view may contain the (invisible) field 'id' needed
for a domain (when 2 objects have cross references)
Unfortunately, if I use this id field in a view, it crashes because
"id" does not appear in _columns ("key error").
I originally posted that in "answers" but it seems to me it's a bug (a
small one, I admit).
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/828009/+subscriptions
References