← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 828009] [NEW] "id" field in a view

 

Public bug reported:

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).

** Affects: openobject-server
     Importance: Undecided
         Status: 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


Follow ups

References