コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6357 ビュー

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.


アバター
破棄
著作者 最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 21
2562
1
2月 25
1210
1
11月 23
2085
2
12月 23
5661
1
11月 22
2564