Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2066 Lượt xem

I want to do something like this with external api

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


is this possible?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
2801
1
thg 10 24
2043
0
thg 9 23
1633
1
thg 6 23
2122
xmlrpc search_read Đã xử lý
1
thg 6 23
2299