Odoo Help


OpenERP 7: hide Form Header for read only purpose

indra kurniawan
on 6/27/13, 8:39 AM 4,424 views

Hi I am trying to create a Form for display only mode; so I need to hide all the headers or it's elements: bread crumbs, buttons (edit, create, more, delete, duplicate, next, previous) from the Form.

images and full question at stackoverflow: (i do not have enough karma to upload image, or embed url)

subject: OpenERP 7: Hide Whole Form Header or It's Elements



My questions:

  1. How to hide the Whole Form's header for Read Only mode?

  2. What is the best practice in OpenERP 7 to show form in read only mode?

Thank you

Have you found a solution?

on 7/19/13, 1:26 PM

nope; I have moved to other task. my plan was using javascript to set display:none to the header. kinda like http://kevin.deldycke.com/2013/03/openerp-61-web-javascript-hacks-hide-buttons/

indra kurniawan
on 7/20/13, 1:28 AM

for now I just use CSS inside the form set display: none for the header; but I don't think this is secure. <style > .openerp .oe_view_manager table.oe_view_manager_header{display:none} </style>

indra kurniawan
on 7/29/13, 5:36 AM

@ indra where i have to write this code ?

on 9/13/13, 1:18 AM

@anuradha anywhere inside your <form> in xml view

indra kurniawan
on 9/13/13, 1:34 AM

Did it thanks

on 9/13/13, 1:52 AM

@indira Do you know how to add header in tree view?

on 9/13/13, 1:54 AM

too bad not yet; cheers

indra kurniawan
on 9/18/13, 4:29 AM

@indira i added !!

on 9/18/13, 6:37 AM
On 7/22/13, 3:13 AM

Found a way to remove 'Edit' and 'Create' buttons in form and disable deletion, with a hint from this answer:

In your form, add this:

<form string="Your string" edit="false" create="false" delete="false">

Perhaps some experiments or search through addons source code for examples could reveal a full solution for your problem.

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: 6/27/13, 8:39 AM
Seen: 4424 times
Last updated: 3/16/15, 8:10 AM