diff --git a/addons/hr_timesheet/test/test_hr_timesheet.yml b/addons/hr_timesheet/test/test_hr_timesheet.yml index 59d688f183b..91219863e34 100644 --- a/addons/hr_timesheet/test/test_hr_timesheet.yml +++ b/addons/hr_timesheet/test/test_hr_timesheet.yml @@ -2,11 +2,11 @@ In order to test hr_timesheet Module in OpenERP, I make "Sign In/Sign Out for Project" to encode and track time spent on the different projects. - - I create employee "Quentin Paolino" as "User". + I create employee "Gilles Gravie" as "User". - !record {model: hr.employee, id: hr.employee_qdp}: address_home_id: base.res_partner_address_8 - name: Quentin Paolino + name: Gilles Gravie parent_id: 'hr.employee_al' user_id: 'base.user_demo' - @@ -22,7 +22,7 @@ !python {model: hr.sign.in.project}: | import time uid = ref('base.user_demo') - new_id = self.create(cr, uid, {'emp_id': ref('hr.employee_qdp'), 'name': 'Quentin Paolino', + new_id = self.create(cr, uid, {'emp_id': ref('hr.employee_qdp'), 'name': 'Gilles Gravie', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S')}) self.sign_in_result(cr, uid, [new_id], context) - @@ -35,7 +35,7 @@ new_id = self.create(cr, uid, {'account_id': ref('account.analytic_nebula'),'analytic_amount': 7.0, 'date': (datetime.now()+timedelta(1)).strftime('%Y-%m-%d %H:%M:%S') , 'date_start': time.strftime('%Y-%m-%d %H:%M:%S'), 'info': 'Create Yaml for hr module', - 'name': 'Quentin Paolino', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'action'}) + 'name': 'Gilles Gravie', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'action'}) self.sign_out_result(cr, uid, [new_id], context) - My work for this project "Sednacom" is over and I stop working by clicking on "Stop Work" button of this wizard. @@ -47,5 +47,5 @@ new_id = self.create(cr, uid, {'account_id': ref('account.analytic_spark'), 'analytic_amount': 7.0, 'date': (datetime.now()+timedelta(2)).strftime('%Y-%m-%d %H:%M:%S'), 'date_start': time.strftime('%Y-%m-%d %H:%M:%S'), 'info': 'Create Yaml for hr module', - 'name': 'Quentin Paolino', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'absent'}) + 'name': 'Gilles Gravie', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'absent'}) self.sign_out_result_end(cr, uid, [new_id], context) diff --git a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml index 0cffabd0721..567bf3e9352 100644 --- a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml +++ b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml @@ -7,29 +7,29 @@ !record {model: res.company, id: base.main_company}: timesheet_max_difference: 1.00 - - I assign this product(Service on Timesheet) and journal(Timesheet Journal) to employee "Quentin Paolino" + I assign this product(Service on Timesheet) and journal(Timesheet Journal) to employee "Gilles Gravie" - !record {model: hr.employee, id: hr.employee_qdp}: product_id: product.product_product_consultant journal_id: hr_timesheet.analytic_journal - - I create a timesheet for employee "Quentin Paolinon". + I create a timesheet for employee "Gilles Gravie". - !record {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_deddk0}: date_from: !eval time.strftime('%Y-%m-01') - name: Quentin Paolinon + name: Gilles Gravie state: new user_id: base.user_demo employee_id: 'hr.employee_qdp' - - Quentin "Sign In" at around 9am. + Gilles "Sign In" at around 9am. - !record {model: hr.attendance, id: hr_attendance_1}: action: sign_in employee_id: 'hr.employee_qdp' name: !eval datetime.now().strftime('%Y-%m-%d 09:%M:%S') - - I test that Quentin in signed in + I test that Gilles in signed in - !assert {model: hr.employee, id: hr.employee_qdp}: - state == 'present'