Odoo Help

Welcome!

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.

1

OpenERP 7: hide Form Header for read only purpose

By
indra kurniawan
on 6/27/13, 8:39 AM 3,508 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

url:

stackoverflow.com/questions/17340190/openerp-7-hide-whole-form-header-or-its-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?

Antanas
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 ?

Anuradha
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

Anuradha
on 9/13/13, 1:52 AM

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

Anuradha
on 9/13/13, 1:54 AM

too bad not yet; cheers

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

@indira i added !!

Anuradha
on 9/18/13, 6:37 AM
0
Antanas
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.

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)

Stats

Asked: 6/27/13, 8:39 AM
Seen: 3508 times
Last updated: 3/16/15, 8:10 AM