Odoo Help


This community 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.


I can not get a form view with inheritence

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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