Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2103 มุมมอง

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])

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ค. 25
2840
1
ต.ค. 24
2062
0
ก.ย. 23
1648
1
มิ.ย. 23
2141
xmlrpc search_read แก้ไขแล้ว
1
มิ.ย. 23
2308