From e52e1d76ef52daab63177224d1b83dbe3105acc9 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 16 Sep 2012 22:11:14 +0200 Subject: [PATCH] [FIX] fixed a bug in the tests scenario that made runbot crashes on sunday evening (24:00-8.25) bzr revid: fp@openerp.com-20120916201114-87of782oa0wv9j64 --- addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 849c2fa7caa..99705b07a39 100644 --- a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml +++ b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml @@ -60,7 +60,7 @@ !record {model: hr.attendance, id: hr_attendance_1}: action: sign_out employee_id: 'hr.employee_qdp' - name: !eval (datetime.now() + timedelta(hours=8.25)).strftime('%Y-%m-%d %H:%M:%S') + name: !eval (datetime.now() + timedelta(minutes=1)).strftime('%Y-%m-%d %H:%M:%S') - I create Timesheet Entry for time spend on today work. - @@ -102,6 +102,11 @@ product_id: product.product_product_consultant general_account_id: account.a_expense journal_id: hr_timesheet.analytic_journal +- + I set an allowed difference of 25 hours +- + !record {model: res.company, id: base.main_company}: + timesheet_max_difference: 25.00 - I tried again to confirm the timesheet after modification. -