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

Hello,

I want to execute a Server Action when the button to confirm sale is clicked.

Is it possible to do so ? Through Graphical Interface ?

In Odoo 9

Thanks you !


الصورة الرمزية
إهمال
أفضل إجابة

Yes, you can do it. You need to call the run function of "ir.actions.server" object from the confirm method.

Ex:

self.env.ref('module_name.xml_id_of_server_action').run()


الصورة الرمزية
إهمال
الكاتب

Ok thank you for your answer ! I have one more question, where can i access the confirm method ?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 23
1829
0
سبتمبر 23
1523
2
يونيو 25
10931
6
أكتوبر 23
21782
3
مارس 24
9238