From f4ee139ba1f6fb0686ecbf2fdddd5e05464c95df Mon Sep 17 00:00:00 2001 From: Digvijay Singh Date: Thu, 26 Jul 2012 17:01:10 +0530 Subject: [PATCH] [IMP]l10n_in_hr_payroll: add yaml file for payment advice bzr revid: dsi@tinyerp.com-20120726113110-stmumo4w50usxeo5 --- .../test/payment_advice.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/addons/l10n_in_hr_payroll/test/payment_advice.yml b/addons/l10n_in_hr_payroll/test/payment_advice.yml index ecbd9f47385..c9d8cb9b287 100644 --- a/addons/l10n_in_hr_payroll/test/payment_advice.yml +++ b/addons/l10n_in_hr_payroll/test/payment_advice.yml @@ -1,12 +1,14 @@ +- + In order to test Advice Line I create a new Advice Line Record - import datetime - - I create a new Payment Advice For Month june and july + I create a new Payment Advice with IFSC Code - !record {model: hr.payroll.advice, id: payment_advice_1}: name: 'June' date: !eval "'%s-06-01' %(datetime.now().year)" - bank_id: 'base.res_bank_1' + bank_id: base.res_bank_1 chaque_nos: '007667' line_ids: - employee_id: hr.employee_fp @@ -17,12 +19,14 @@ name: '00014521111232' ifsc_code: 'sbi45452145' bysal: '20000.00' +- + I create a new Payment Advice without IFSC Code - !record {model: hr.payroll.advice, id: payment_advice_2}: name: 'July' date: !eval "'%s-07-01' %(datetime.now().year)" chaque_nos: '007568' - bank_id: 'base.res_bank_1' + bank_id: base.res_bank_1 line_ids: - employee_id: hr.employee_fp name: '90125452' @@ -35,6 +39,15 @@ - !assert {model: hr.payroll.advice, id: payment_advice_1, string: Payment Advice is in draft state}: - state == 'draft' +- + I check that payment advice is confirmed +- + !python {model: hr.payroll.advice}: | + advice_line = self.confirm_sheet(cr, uid, [ref('payment_advice_1')]) +- + !python {model: hr.payroll.advice}: | + advice_line = self.browse(cr, uid, ref("payment_advice_1")) + assert (advice_line.state == 'confirm') - In order to test the PDF reports defined on a Payment Advice,we will print a Payment Advice Detail Summary Report when NEFT is checked -