Odoo Help

2

1
3 Answers
2
Avatar
--Qutechs, Ahmed M.Elmubarak--


Qutechs, Ahmed M.Elmubarak Sudan
3/29/15, 6:22 AM

Hello,

To make the field appear only on edit/create you can use:

<field name="name" class="oe_edit_only"/>


Regards...

2 Comments
Aron Lorincz Hungary
4/10/18, 5:15 AM

Again... why is it not documented!? (Anyhow, thanks for the solution.)

Jérémy Kersten (jke) Belgium
4/10/18, 5:22 AM
1
salman Bahrain
3/29/15, 8:01 AM

Thanks but class="oe_edit_only" is not working when the field is in the one2many field  it will only disable it

0
Avatar

Jérémy Kersten (jke) Belgium

--Jérémy Kersten (jke)--

6373
| 4 4 11
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013.

He is now the Team Leader of the Website Team and support of our own website odoo.com.

Jérémy Kersten (jke) Belgium
3/29/15, 6:21 AM

Hello

You can use the class oe_edit_ony


<div class="oe_edit_only">
  <field name="your_field/>
</div>


Take a look in res partner form, where "Is a company" is using this class !

Ask a Question
Writer
Keep Informed
2 follower(s)
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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now