Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6377 Widoki

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.


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lis 21
2586
1
lut 25
1243
1
lis 23
2121
2
gru 23
5732
1
lis 22
2577