Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8116 มุมมอง

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,

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 21
8369
2
ธ.ค. 23
38185
0
เม.ย. 24
1884
Odoo v8 custom model with workflow error แก้ไขแล้ว
1
เม.ย. 16
4613
0
พ.ค. 24
3910