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

Hello,

I want to execute a Server Action when the button to confirm sale is clicked.

Is it possible to do so ? Through Graphical Interface ?

In Odoo 9

Thanks you !


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

Yes, you can do it. You need to call the run function of "ir.actions.server" object from the confirm method.

Ex:

self.env.ref('module_name.xml_id_of_server_action').run()


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

Ok thank you for your answer ! I have one more question, where can i access the confirm method ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 23
1836
0
ก.ย. 23
1530
2
มิ.ย. 25
10942
6
ต.ค. 23
21789
3
มี.ค. 24
9244