Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1900 Zobrazení

I want to do something like this with external api

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


is this possible?

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit

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 Odpovědi Zobrazení Aktivita
1
říj 24
1832
2
bře 24
2488
0
zář 23
1506
1
čvn 23
1979
1
čvn 23
2173