تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6369 أدوات العرض

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
نوفمبر 21
2570
1
فبراير 25
1224
1
نوفمبر 23
2111
2
ديسمبر 23
5688
1
نوفمبر 22
2568