We recently migrated from Odoo 8 to Odoo 12.
In Odoo 8 we used the xmlrpc and python 3 to create and modify invoices, sales orders, purchase orders, etc.
Now with Odoo 12 the functionality of exec_workflow has been removed. For example, we used it in the following manner:
models.exec_workflow(db, uid, password, 'purchase.order', 'bid_received', PO_id)
models.exec_workflow(db, uid, password, 'purchase.order', 'purchase_confirm', PO_id)
models.exec_workflow(db, uid, password, 'account.invoice', 'invoice_open', INVOIC_id)
I read that it is deprecated since Odoo 10 but I could not find what replaced it since then.
Could someone point me in the right direction?