Odoo Help


Fail to hide create and save button of views

Xia Sun
on 4/4/16, 11:20 PM 804 views

I want to remove the create and save button on my customized view.

Follow many answer, I add create="false" and edit="false" , but they don't work at all... Can anyone help me find what's wrong?

My code is below and please ignore the Chinese character.

Many thanks!

<record id="action_medinfo_diagnoses" model="ir.actions.act_window">

<field name="name">诊断数据</field>

<field name="res_model">medinfo.diagnoses</field>

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


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

<field name="name">Medinfo diagnoses: form</field>

<field name="model">medinfo.diagnoses</field>

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

<form create="false" edit="false">



<t t-name="form-box">




<a target="_blank" href="diagnoses_index/">诊断数据详情</a>








Hello Xia, Will you upgrade the module ?

Jignesh Mehta
on 4/5/16, 2:30 AM

Hi Jignesh, Yes i dit upgrade the module, I have even restart the server and clean the browser cache but still doesn't work.

Xia Sun
on 4/5/16, 4:08 AM

will you create tree view for this model ?

Jignesh Mehta
on 4/5/16, 5:00 AM

May be templates not used in form view.

Jignesh Mehta
on 4/5/16, 5:03 AM

But it seems that only can be the sub-element of ... I need some dives here

Xia Sun
on 4/5/16, 10:02 PM

But it seems that only "field" can be inside of "tree"... I need some dives here

Xia Sun
on 4/5/16, 10:13 PM

Hello Xia, Tree view is for only purpose view and you can use div tag without templates in form view.

Jignesh Mehta
on 4/6/16, 12:09 AM
--Jignesh Mehta--

Jignesh Mehta
On 4/5/16, 2:32 AM

Hello Xia,

Please create a Tree view for the same model and give it create="false" and edit="false".

Hope this will helps you.


Thanks i finally jump this step, i set a menuitem to a hyper link directly so i don't need the form.

Xia Sun
on 4/14/16, 1:25 AM

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: 4/4/16, 11:20 PM
Seen: 804 times
Last updated: 4/14/16, 1:23 AM