Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6388 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 21
2598
1
thg 2 25
1253
1
thg 11 23
2131
2
thg 12 23
5758
1
thg 11 22
2599