Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6621 Ansichten

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
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Nov. 21
2776
1
Feb. 25
1362
1
Nov. 23
2334
2
Dez. 23
5954
1
Nov. 22
2781