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

In odoo, with a Python "raise warning" command I am able to launch a window that warns me of any error in a form. But until I fix that bug I can't save the form.

Now I want to create a simple confirmation window, that if I hit OK it will let me save the form.

Is there a command for this in Python?

Thank you very much.

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

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

ผู้เขียน คำตอบที่ดีที่สุด

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

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

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

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

I added directly in the view of the model.

<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 25
1332
4
เม.ย. 24
174194
0
ธ.ค. 23
2117
5
ก.ค. 25
227885
1
ธ.ค. 22
3224