[IMP] hr_payroll_account: Minor improvement in payslip.yml

bzr revid: mra@mra-laptop-20110607085259-ikf0uy2d7b3jta9u
This commit is contained in:
Mustufa Rangwala 2011-06-07 14:22:59 +05:30
parent 1a1ee753b8
commit 06c119ef26
1 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
-
I test the 'Payslip' in order to check the hr_payroll_account module in OpenERP
I test the "Payslip" in order to check the hr_payroll_account module in OpenERP
-
I create a bank record
-
@ -10,7 +10,7 @@
state: bank
bank: base.res_bank_1
-
I create a new employee “John”
I create a new employee "John"
-
!record {model: hr.employee, id: hr_employee_john}:
address_home_id: base.res_partner_address_2
@ -32,15 +32,15 @@
code: SD
company_id: base.main_company
parent_id: hr_payroll.structure_base
rule_ids:
rule_ids:
- hr_payroll.hr_payslip_line_houserantallowance1
- hr_payroll.hr_payslip_line_convanceallowance1
- hr_payroll.hr_payslip_line_professionaltax1
- hr_payroll.hr_payslip_line_professionaltax1
- hr_payroll.hr_payslip_line_providentfund1
- hr_payroll.hr_salary_rule_meal_voucher
- hr_payroll.hr_salary_rule_sales_commission
-
I create a contract for 'John'
I create a contract for "John"
-
!record {model: hr.contract, id: hr_contract_john}:
date_end: !eval "'%s-%s-%s' %(datetime.now().year+1,datetime.now().month,datetime.now().day)"
@ -69,9 +69,9 @@
date_to = str(datetime.now() + relativedelta.relativedelta(months=+1, day=1, days=-1))[:10]
res = self.onchange_employee_id(cr, uid, [], date_from, date_to, ref("hr_employee_john"), False, None)
vals = {
'struct_id': res['value']['struct_id'],
'struct_id': res['value']['struct_id'],
'contract_id': res['value']['contract_id'],
'name': res['value']['name'],
'name': res['value']['name'],
}
vals['worked_days_line_ids'] = [(0,0,i) for i in res['value']['worked_days_line_ids']]
vals['input_line_ids'] = [(0,0,i) for i in res['value']['input_line_ids']]
@ -82,7 +82,7 @@
!python {model: hr.payslip.input}: |
ids = self.search(cr, uid, [('payslip_id', '=', ref("hr_payslip_0"))])
self.write(cr, uid, ids, {'amount': 5.0})
-
-
I verify the payslip is in draft state
-
!python {model: hr.payslip}: |
@ -90,7 +90,7 @@
payslip_brw=self.browse(cr, uid, ref("hr_payslip_0"))
assert(payslip_brw.state == 'draft'), _('State not changed!')
-
I click on 'Compute Sheet' button
I click on "Compute Sheet" button
-
!python {model: hr.payslip}: |
self.compute_sheet(cr, uid, [ref("hr_payslip_0")], {"lang": "en_US", "tz": False,
@ -98,8 +98,8 @@
"section_id": False, "active_id": ref("hr_payroll.menu_department_tree"),
})
-
Then I click on the 'Confirm' button
-
Then I click on the "Confirm" button
-
!workflow {model: hr.payslip, action: hr_verify_sheet, ref: hr_payslip_0}
-
I verify that the Accounting Entries are created