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

I am trying to mimic a button press on a form through the API (xmlrpc). For example I have created a stock move and need to replicate the action of pressing the button 'Process Entirely' i.e. stock.move.action_done() passing the id of the required stock move record.

The two approaches I I have thought could work are: -

  1. To create a workflow linked to the action_done action and then call the workflow through the API.

  2. Create an Inherited version the stock.move module and expose the action_done method so its executable through the API.

Could tell me what the best 'Odoo' way of achieving the above would be and point me towards examples of this being done?



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

Scratch that, was making a workflow call instead of an execute to the API. Works fine now.

الصورة الرمزية
إهمال

If you feel so inclined, post your code in your answer so if someone else wants to do this, they can benefit from what you learned.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 19
3058
2
يناير 25
87
0
ديسمبر 24
1217
0
أغسطس 23
1684
1
ديسمبر 22
4959