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

I am trying to understand how Odoo works.

I want to display a popup form with all items in a stock picking report when user press a button.

The user will select or deselect items in that popup and other stuff will be done.

My specific question is: do I have to create a new model for this popup window?

I have seen how to define the button, and it seems it has to refer to a new model.

Thanks,

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

Hello,

It depends on what you want to achieve. It is not required to make a new model [if the model already exists] to show a popup Form. The popup form is a normal action just with target = new. chick this line .

If you want to make a popup form as a wizard or something you can make a model inherited from osv.osv_memory [models.TransientModel new API]. also check this line 

Hope this could helps you with some clues ..

Ảnh đại diện
Huỷ bỏ
Tác giả

Still not being able to create the popup window, see www.odoo.com/forum/help-1/question/developing-a-new-popup-in-stock-picking-basic-doubts-about-how-to-generate-the-popup-97625 in case you want to further help

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 21
8318
2
thg 12 23
38129
0
thg 4 24
1849
1
thg 4 16
4598
0
thg 5 24
3868