← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 676274] Re: commented XML code crashes inherited views

 

Hmm, this is because the inheritance mechanism tries to find the
"comment" you are inheriting from in the parent view, like any other
element. We could ignore it indeed, as I don't think inheriting from a
comment would make sense.

The workaround is quite simple though, and the error message is not too
bad, so I'm setting this to Wishlist, but planning to solve for RC2.

Thanks for the report!

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

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

** Changed in: openobject-server
    Milestone: None => 6.0-rc2

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

-- 
commented XML code crashes inherited views
https://bugs.launchpad.net/bugs/676274
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Confirmed

Bug description:
My code is (headers ommited)
<record id="page_orded_sale" model="ir.ui.view">
<field name="name">page_orded_sale</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<data>
<!-- <xpath expr="//page[@string='Sale Order &amp; Purchases']/page[@string='notes']" position="replace"/> -->
<xpath expr="//page[@string='Notes']" position="replace"/>
</data>
</field>
</record> 

And it gives error: Couldn't find tag '<<built-in function Comment>>' in parent view 

When I delete commented code, everything works OK.
Why commented code makes any difference?





Follow ups

References