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 hide fields in one of the form view..

By
charlesraj
on 8/1/13, 2:37 AM 811 views

hi.

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

1

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 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.

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

0 follower(s)

Stats

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