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

Hello everybody!

I'm trying to listen the save button in the product template form to display a popup. But I don't know how do it.

I tried using the method create and write. But when I return this:

return {
'name':name,
'view_mode': 'form',
'view_id': False,
'res_model': 'message.wizard',
'res_id': partial_id,
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'new',
'domain': '[]',
}


It doesn't display nothing.

Also, I saw that this is normal. Because these methods return other types of values.

Can I replace the save button to save the data and display a popup or is it impossible?

I have seen that JavaScript can be used. Maybe to do it I should use this or with a XML template and python I could do it.


Greetings and thank you very much!


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

You will have to go with javascript.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 23
2112
1
มิ.ย. 22
3116
0
มิ.ย. 21
4240
0
พ.ค. 23
1777
Enter key to act like Tab แก้ไขแล้ว
1
ก.ย. 21
3291