Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6376 Prikazi

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
Opusti
Avtor Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
nov. 21
2586
1
feb. 25
1242
1
nov. 23
2118
2
dec. 23
5717
1
nov. 22
2573