Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2102 Visninger

I want to do something like this with external api

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


is this possible?

Avatar
Kassér
Bedste svar

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

Avatar
Kassér

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 Besvarelser Visninger Aktivitet
3
jul. 25
2839
1
okt. 24
2062
0
sep. 23
1648
1
jun. 23
2141
1
jun. 23
2308