Skip to Content
Menu
This question has been flagged
1 Reply
1202 Views

I want to do something like this with external api

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


is this possible?

Avatar
Discard
Best Answer

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
Discard

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 Replies Views Activity
1
Oct 24
1039
2
Mar 24
1710
0
Sep 23
986
1
Jun 23
1416
1
Jun 23
1706