← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 675991] [NEW] commented XML code crashes inherited views

 

Public bug reported:

In my inherited view in my new module I have:

  <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 the error I get is:
Couldn't find tag '<<built-in function Comment>>' in parent view 

After deleting commented code "<xpath expr="//page[@string='Sale Order
&amp; Purchases']/page[@string='notes']" position="replace"/" the error
dissapears. Why?

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

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

Status in OpenObject Addons Modules: New

Bug description:
In my inherited view in my new module I have:

  <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 the error I get is:
Couldn't find tag '<<built-in function Comment>>' in parent view 

After deleting commented code "<xpath expr="//page[@string='Sale Order &amp; Purchases']/page[@string='notes']" position="replace"/" the error dissapears. Why?





Follow ups

References