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

hi community,

how can i create an action XMLRPC, button confirm in example sale.order ?

ids = execute('sale.order' , 'action_button_confirm', ???)

any ideas ?

Thx

Avatar
Discard
Best Answer

you can do like this :-


order_id = models.execute_kw(ODOO_DB, ODOO_USERNAME, ODOO_PASSWORD, 'sale.order', 'create', [{'name': name}])

res = models.execute_kw(ODOO_DB, ODOO_USERNAME, ODOO_PASSWORD, 'sale.order', 'action_button_confirm', [order_id])
Avatar
Discard