← Back to team overview

credativ team mailing list archive

[Bug 898176] Re: Recursion is not checked while loading inherited views

 

Hello Lionel,

I have checked this issue at my end, and I have seen that there is no
restriction on server side to passed same record id for inheritance.

By the way this a Developer s mistake..;-) and it leads to recursion. So this is not a bug.
But we need to improve this. That's why I am considering this a "Improvement " and set it as a "Wishlist".

Thank you!

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
   Importance: Undecided => Wishlist

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

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

Title:
  Recursion is not checked while loading inherited views

Status in OpenERP Server:
  Confirmed

Bug description:
  In the current trunk as well as in v6.0, the hierechical structure of views and inherited views is not checked for loops when creating a new inherited view.
  This could lead to infinite loops that are a bit hard to debug without a hint from the server.

  Example: the server should refuse to load a view such as the following one - please notice that id = inherit_id:
          <record id="product.product_product_tree_view" model="ir.ui.view">
              <field name="name">product_label.product.tree</field>
              <field name="model">product.product</field>
              <field name="inherit_id" ref="product.product_product_tree_view"/>
              <field name="arch" type="xml">
                  <xpath ..... />
              </field>
          </record>

  Lionel Sausin.

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


References