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.

0

How to add an html tag in the view editor?

By
Luigi Sison
on 10/11/14, 12:06 AM 2,316 views

While editing a project form, I accidentally deleted the <h1> tag from the 'name' field. Now the project name appears as regular text in the form view. I tried using the node type html_tag and got the error message "Can't Update View".

0

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 10/11/14, 5:18 AM

Again you can add h1 tab in view.
Add following code.

<h1>
    <field name="name" class="oe_inline" readonly="1"/>
</h1>

Sudhir, how can I add h1 tab in the view? Is there another way besides using view editor? Or if I use view editor, what node type should I use?

Luigi Sison
on 10/11/14, 2:50 PM

How did you edit the view previously?

Sudhir Arya (SA)
on 10/12/14, 5:08 AM

I used the view editor available in the developer mode.

Luigi Sison
on 10/13/14, 1:09 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/11/14, 12:06 AM
Seen: 2316 times
Last updated: 3/16/15, 8:10 AM