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
Post a Comment