- Workflow Mexican Electronic Payroll - !python {model: hr.payslip}: | cr.execute("""UPDATE wkf_instance SET state = 'active' WHERE state = 'complete' and wkf_id = (SELECT id FROM wkf WHERE name = 'hr.payslip.basic') AND res_id IN (SELECT id FROM hr_payslip WHERE state = 'done')""")