Odoo Help


I can not get a form view with inheritence

on 8/14/16, 12:35 PM 412 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">




<field name="attr1" />

<field name="attr2 />

<field name="attr3" />







<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" />





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

ayman mohammed adam
On 8/15/16, 5:35 AM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/14/16, 12:35 PM
Seen: 412 times
Last updated: 8/15/16, 5:35 AM