What's the new equivalent method to this?
---------------------------------
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'res.partner', partner_id, 'btn_approve', cr)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
What's the new equivalent method to this?
---------------------------------
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'res.partner', partner_id, 'btn_approve', cr)
use -
self.signal_workflow('action_assign')
Refer to this -
https://www.odoo.com/forum/help-1/question/send-a-signal-to-workflow-in-python-new-api-68085
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up