How to inherit views porperly in openerp 7.0 -


hi view inheritance code , following error while using code . " valueerror: many values unpack "

please me resolve issue

    <record model="ir.ui.view" id="inherit_form_view1">         <field name="name">inherit form</field>         <field name="model">student.info.student</field>         <field name="type">form</field>         <field name="inherit_id" ref="student.info.student.form_view1" />         <field name="arch" type="xml">             <!-- <xpath expr="/sheet/notebook/page/field[@name='mname']" position="after">                 <field name="m_tongue" />             </xpath -->>              <field name="mname" positon="after">             <field name="m_tongue" />             </field>          </field>     </record>  </data> 

<record model="ir.ui.view" id="inherit_form_view1">     <field name="name">inherit form</field>     <field name="model">student.info.student</field>     <field name="type">form</field>     <field name="inherit_id" ref="student_info_student.form_view1" />     <field name="arch" type="xml">          <field name="mname" positon="after">             <field name="m_tongue" />         </field>      </field> </record> 

your ref wrong! structure must "module_name"."view_name". further using xpath safer , preferable way is, if beginner, clearer.

hope helped :)


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -