Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2072 Vizualizări

I want to do something like this with external api

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


is this possible?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează

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 Răspunsuri Vizualizări Activitate
3
iul. 25
2807
1
oct. 24
2048
0
sept. 23
1642
1
iun. 23
2127
1
iun. 23
2302