Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6957 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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"
Ảnh đại diện
Huỷ bỏ
Tác giả

thanks for your answer.