[IMP] hr_payroll_account: use the new signal_xxx method instead of trg_validate.

bzr revid: tta@openerp.com-20130131131107-4h42x3g19blw6jzw
This commit is contained in:
Tejas Tank 2013-01-31 18:41:07 +05:30
parent f63497e12f
commit d80d065144
1 changed files with 1 additions and 3 deletions

View File

@ -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.
-