[IMP]code added for checking advice in yml.

bzr revid: kbh@tinyerp.com-20120814053847-hrxby3r1s17l7uwr
This commit is contained in:
Khushboo Bhatt (Open ERP) 2012-08-14 11:08:47 +05:30
parent 08460d4dcd
commit 8bdf79744b
1 changed files with 6 additions and 0 deletions

View File

@ -50,3 +50,9 @@
-
!python {model: hr.payslip.run}: |
self.create_advice(cr, uid, [ref('hr_payslip_run_forAdvice')])
-
I check for Advice which made from Payslip run
-
!python {model: hr.payroll.advice}: |
advice_ids = self.search(cr, uid, [('batch_id','=',ref('hr_payslip_run_forAdvice'))])
assert advice_ids,"Advice is not created from payslip Batch."