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

Hello,

Is the following possible?

My parent object has a boolean, depending on the setting of the boolean will determine which view needs to opened.

If bool is true open form a, else form b.

I'd looked at the following: The chapter Specify the views you want to use in the Developer Book.

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

Hello todd,

What you say is not possible. But what OpenERP Says in the book The chapter Specify the views you want to use in the Developer Book. is possible. That this means that if you have a child table linked with your parent table and your child table has many views defined say for eg: form view 1 and form view 2 then you can specify which form view you want to open by passing a key *_view_ref:XML_VIEW_ID here * is either of form/tree/search etc. So OpenERP will open this view when requested. Pass this parameter on the field's context.

Eg:{'form_view_ref:'form_view_1'}

Thanks,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
68949
2
thg 12 23
25515
1
thg 10 21
9419
0
thg 7 19
4326
1
thg 3 15
6558