콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6589 화면

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
2704
1
2월 25
1338
1
11월 23
2316
2
12월 23
5929
1
11월 22
2762