Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6941 Представления

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

Аватар
Отменить
Лучший ответ

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.