[IMP]code added for checking advice in yml.
bzr revid: kbh@tinyerp.com-20120814053847-hrxby3r1s17l7uwr
This commit is contained in:
parent
08460d4dcd
commit
8bdf79744b
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue