İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6394 Görünümler

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.


Avatar
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Kas 21
2600
1
Şub 25
1258
1
Kas 23
2133
2
Ara 23
5763
1
Kas 22
2605