← Back to team overview

openerp-india team mailing list archive

[Bug 942202] [NEW] [6.1] implementation of view ref does not allow unqualified views from same module

 

Public bug reported:

latestish revisions

in orm.py around line 2090 there is a bunch of code that deals with the
scenario that <type>_view_ref is passed in context of a many2one field.
However this block of code will only accept a view_ref which is fully
qualified whereas by convention in every other aspect of defining views,
actions, menus that the omission of the module part of the module.xml_id
simply means the local module.

To test it is not so easy as main addons still uses primarily nested
views, so you can either trust me and look at the code to see that the
case of an unqualified xml_id isn't handled, or have fun building some
views.

the obvious workaround is to qualify it, but it is inconsistent with
every other aspect of view development.

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/942202

Title:
  [6.1] implementation of view ref does not allow unqualified views from
  same module

Status in OpenERP Server:
  New

Bug description:
  latestish revisions

  in orm.py around line 2090 there is a bunch of code that deals with
  the scenario that <type>_view_ref is passed in context of a many2one
  field.  However this block of code will only accept a view_ref which
  is fully qualified whereas by convention in every other aspect of
  defining views, actions, menus that the omission of the module part of
  the module.xml_id simply means the local module.

  To test it is not so easy as main addons still uses primarily nested
  views, so you can either trust me and look at the code to see that the
  case of an unqualified xml_id isn't handled, or have fun building some
  views.

  the obvious workaround is to qualify it, but it is inconsistent with
  every other aspect of view development.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/942202/+subscriptions


Follow ups

References