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

Hello there,

So I have been trying to figure out a way to trigger button methods using Automated actions by Python code. 

for example: 
I want to confirm an order (trigger the action_confirm method), when the customer reference field goes from not set to set. I am only interested in knowing how I can trigger the method so the sales order goes from quotation to sales order. I just can't seem to figure out how to call the method.

I've tried using model.action_confirm(), but it does nothing.

Any suggestions would be greatly appreciated.


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I figured it out. The following code is able to trigger the confirmation of a sales order
record.action_confirm() 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 21
2606
1
ก.พ. 25
1266
1
พ.ย. 23
2159
2
ธ.ค. 23
5779
1
พ.ย. 22
2615