This question has been flagged
1 Reply
6091 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.?

Avatar
Discard
Best Answer

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"
Avatar
Discard
Author

thanks for your answer.