Odoo Help


How to hide fields in one of the form view..

on 8/1/13, 2:37 AM 1,173 views


In my case "recruitment module" installed for recruitment purpose.

In the kanban view there are different stages. intial qualification,contract proposed etc. my need is to hide some of the field in the intial qualification form, and appears those hidden field in the next stage of the forms.

is there any way. is it possible in openerp v7.0.?


Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 8/1/13, 2:52 AM

Hi Charlesraj, For your module with

state =[
    ('draft', 'New'),
    ('cancel', 'Refused'),
    ('open', 'In Progress'),
    ('pending', 'Pending'),
    ('done', 'Hired')

You can try to use :

1.  States:
<field name="example" states="pending" />           
              ---> This field "example" is shown only when the stage is in "pending" state otherwise the field is hidden

2.  Attrs:
<field name="example" attrs="{'invisible': [('state','!=','pending')]}" />
              ---> State other than "pending" is invisible for the field "example"

thanks for your answer.

on 8/1/13, 3:37 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

0 follower(s)


Asked: 8/1/13, 2:37 AM
Seen: 1173 times
Last updated: 3/16/15, 8:10 AM