Skip to Content
Menu
This question has been flagged
1 Reply
1713 Views

I use odoo 8 and i have a problem thet i ca not have a form view by using inheritence,here are the code:

 <record id="dossier_form" model="ir.ui.view" >

<field name="name">dossier.form</field>

<field name="model">mymodule.dossier</field>

<field name="arch" type="xml">

<form>

<sheet>

<group>

<field name="attr1" />

<field name="attr2 />

<field name="attr3" />

 

</group>

</sheet>

</form>

</field>

</record>


<record id="dossier_one_form" model="ir.ui.view">

<field name="name">dossier.one.form</field>

<field name="model">mymodule.dossier.one</field>

<field name="inherit_id" ref='dossier_form'/>

<field name="type">form</field>

<field name="arch" type="xml">

<xpath expr="//field[@name='attr3']" position="after">

<field name="attr4" />

<field name="attr5" />

 

</xpath>

</field>

</record>


i don't know why it doesn't work because i can't see the  fields in the rignt order.

Avatar
Discard
Best Answer

dear Issmahanty

I think you need to replace 
<record id="dossier_one_form" model="ir.ui.view"> by <record id="dossier_form" model="ir.ui.view">
or you need to override the action or create another one.
after that check the dependency

I hope I helped you.
Avatar
Discard