Odoo Help


Why Cannot I create form view using the interface?

Abdullah Sofan
on 9/26/13, 6:29 PM 4,091 views

I tried creating a new module using the web interface using this video as a guide:


Everything was good until I faced the problem of not being able to create a form view as the person did in the video (3min 10sec) . I did the exact steps he did but to no avail.

Also, when I try to create a view from User Interface > Views the view type is fixed to "Tree"

am i missing something? Can someone help me?

Devvyn Murphy
On 1/31/14, 5:24 PM

The video you linked to shows a workaround for creating new form views, wherein you can use "Manage Views" from the debug menu to change the view type to "form" after creating a temporary "tree" view.

As of the time of this answer, there is a bug in the bundled form view for creating/editing form views, "ir.ui.views form". The "type" field in the model for views has a "readonly" attribute, so you'll need to override that attribute in the form:

If you go to Settings / User Interface / Views and search for "ir.ui.view", you can correct the bug in the view quite easily. Change <field name="type"/> to <field name="type" readonly="0"/>. It should look something like this when you're done:

<?xml version="1.0"?>
<form string="Views" version="7.0">
                <field name="name"/>
                <field name="type" readonly="0"/>
                <field name="model"/>
                <field name="priority"/>
                <field name="field_parent"/>
                <field name="inherit_id"/>
                <field name="xml_id"/>
            <page string="Architecture">
                <field name="arch"/>
            <page string="Groups">
                <field name="groups_id"/>

(Bug reports relating to this issue have already been filed, such as: bugs.launchpad.net/openobject-server/+bug/1103788 )

On 8/12/14, 2:36 AM

Sorry if this is late, but the way to manage that issue, follow this steps:

Go to Settings / User Interface / Views, and find the the tree view you create at the begining and click it, then just click in More/ Duplicate button, then change the name of the view, the type of view from tree to Form, and in the xml code change the word tree to form.

Now you can go to your module and you will find your form view.

It works for me, hope it helps

Abdullah Sofan
On 9/26/13, 8:07 PM

Thanks but I already did and that's how I came across the video i mentioned and as I said,

Can you please help with a straight forward specific answer?

I appreciate it.



--Borni DHIFI--
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 


Skype : dhifi.borni

On 9/26/13, 7:37 PM

Thanks but I already did and that's how I came across the video i mentioned and as I said,

Can you please help with a straight forward specific answer?

I appreciate it.

Abdullah Sofan
on 9/27/13, 5:38 AM

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 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: 9/26/13, 6:29 PM
Seen: 4091 times
Last updated: 3/16/15, 8:10 AM