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

I want to do something like this with external api

self.env['stock.picking'].sudo().button_validate()


is this possible?

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

Hello Tony,


Yes, it is possible using xmlrpc script.


Here I am sharing a example. 

Please find code example in comment. 

Feel free to contact me if needed

Hope this will help you.

Thanks & Regards,

Email: odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

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

Please find code example here :-

#Code of connection with host after that below code will apply.
picking_ids = model.execute_kw(db, uid, password, 'stock.picking', 'search', [[('state', '=', 'assigned')]])
picking_validate = model.execute_kw(db, uid, password, 'stock.picking', 'button_validate', [picking_ids])

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أكتوبر 24
1101
2
مارس 24
1749
0
سبتمبر 23
1003
1
يونيو 23
1429
xmlrpc search_read تم الحل
1
يونيو 23
1723