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

He everybody

I have a wizard based on osv model not osv_memory

To launch this wizard I create an action window with target = new

The action window has one view : it's a list view

When I click on my button on form view, It returned the action window that's a wizard, so I can see my list there aren't the buttons create and edit, just the list

the view type of my action window is form (not tree), and the view mode is tree

So my question is how to open action_window on wizard on editable mode (with buttons create and save) ?

Thank you

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

Add form in view_mode like this: 'view_mode': 'tree,form',

Ảnh đại diện
Huỷ bỏ

greate boss for both Q & A :):):)

Tác giả

It doesn't work, I can now edit the lines but I can't add an item, I want to say that there is no button on this view (save or create) I tried : 'view_mode': 'tree,form', and target = inline any other solution ?

Câu trả lời hay nhất

try to change your target, instead of inline, use new or current


'target': 'new'

or

 'target': 'current'

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 16
4908
4
thg 1 22
19920
1
thg 12 22
3429
What is wizard ? Đã xử lý
3
thg 11 23
32590
4
thg 7 25
4950