From d80d06514474fc33a262b4e9a736b67e72cae029 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Thu, 31 Jan 2013 18:41:07 +0530 Subject: [PATCH] [IMP] hr_payroll_account: use the new signal_xxx method instead of trg_validate. bzr revid: tta@openerp.com-20130131131107-4h42x3g19blw6jzw --- addons/hr_payroll_account/test/hr_payroll_account.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/hr_payroll_account/test/hr_payroll_account.yml b/addons/hr_payroll_account/test/hr_payroll_account.yml index 5abf7d5dffa..ad0197c7905 100644 --- a/addons/hr_payroll_account/test/hr_payroll_account.yml +++ b/addons/hr_payroll_account/test/hr_payroll_account.yml @@ -104,10 +104,8 @@ I want to check cancel button. So I first cancel the sheet then make it set to draft. - !python {model: hr.payslip}: | - import netsvc - wf_service = netsvc.LocalService("workflow") self.cancel_sheet(cr, uid, [ref("hr_payslip_0")], None) - wf_service.trg_validate(uid, 'hr.payslip', ref("hr_payslip_0"), 'draft', cr) + self.signal_draft(cr, uid, [ref("hr_payslip_0")]) - Then I click on the "Confirm" button. -