Skip to Content
Menu
This question has been flagged
1 Atsakyti
6529 Rodiniai

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.


Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
lapkr. 21
2684
1
vas. 25
1314
1
lapkr. 23
2246
2
gruod. 23
5892
1
lapkr. 22
2735