Skip to content

[6524][ADD] project_task_default_stage#59

Merged
yostashiro merged 1 commit into
18.0from
6524-add-project_task_default_stage
Mar 30, 2026
Merged

[6524][ADD] project_task_default_stage#59
yostashiro merged 1 commit into
18.0from
6524-add-project_task_default_stage

Conversation

@nobuQuartile

Copy link
Copy Markdown
Contributor

@nobuQuartile

Copy link
Copy Markdown
Contributor Author

The errors are from hr_timesheet_sheet and mail_post_defer.

@AungKoKoLin1997
Could you fix the hr_timesheet_sheet error?

@yostashiro

Copy link
Copy Markdown
Member

The errors are from hr_timesheet_sheet and mail_post_defer.

Just recording errors here:

2026-03-29 23:53:09,165 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_11_onchange_unit_amount ... 
2026-03-29 23:53:09,303 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:09,303 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_11_onchange_unit_amount
Traceback (most recent call last):
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 746, in test_11_onchange_unit_amount
    self.assertEqual(len(sheet.timesheet_ids), 2)
AssertionError: 0 != 2
 
2026-03-29 23:53:09,313 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_12_creating_sheet ... 
2026-03-29 23:53:09,448 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:09,448 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_12_creating_sheet
Traceback (most recent call last):
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 798, in test_12_creating_sheet
    self.assertEqual(len(sheet.timesheet_ids), 1)
AssertionError: 0 != 1
 
2026-03-29 23:53:09,457 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_13 ... 
2026-03-29 23:53:09,575 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_14_analytic_account_multicompany ... 
2026-03-29 23:53:09,772 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_15 ... 
2026-03-29 23:53:09,904 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:09,904 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_15
Traceback (most recent call last):
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 881, in test_15
    self.assertEqual(len(sheet.timesheet_ids), 1)
AssertionError: 0 != 1
 
2026-03-29 23:53:09,913 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_16 ... 
2026-03-29 23:53:10,252 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_1_B ... 
2026-03-29 23:53:10,351 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:10,351 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_1_B
Traceback (most recent call last):
  File "/opt/odoo/odoo/tools/misc.py", line 787, in deco
    return func(*args, **kwargs)
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 227, in test_1_B
    self.assertEqual(len(sheet_form.line_ids), 7)
AssertionError: 8 != 7
 
2026-03-29 23:53:10,361 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_2 ... 
2026-03-29 23:53:10,973 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_3 ... 
2026-03-29 23:53:11,054 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:11,054 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_3
Traceback (most recent call last):
  File "/opt/odoo/odoo/tools/misc.py", line 787, in deco
    return func(*args, **kwargs)
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 340, in test_3
    self.assertEqual(len(sheet_form.line_ids), 7)
AssertionError: 0 != 7
 
2026-03-29 23:53:11,064 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_4 ... 
2026-03-29 23:53:11,192 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:11,192 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_4
Traceback (most recent call last):
  File "/opt/odoo/odoo/tools/misc.py", line 787, in deco
    return func(*args, **kwargs)
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 383, in test_4
    self.assertEqual(len(sheet.line_ids), 7)
AssertionError: 0 != 7
 
2026-03-29 23:53:11,201 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_5 ... 
2026-03-29 23:53:11,337 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:11,337 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_5
Traceback (most recent call last):
  File "/opt/odoo/odoo/tools/misc.py", line 787, in deco
    return func(*args, **kwargs)
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 445, in test_5
    self.assertEqual(len(sheet.line_ids), 7)
AssertionError: 0 != 7
 
2026-03-29 23:53:11,346 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_6 ... 
2026-03-29 23:53:11,499 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:11,499 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_6
Traceback (most recent call last):
  File "/opt/odoo/odoo/tools/misc.py", line 787, in deco
    return func(*args, **kwargs)
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 542, in test_6
    self.assertEqual(len(sheet.line_ids), 7)
AssertionError: 0 != 7
 
2026-03-29 23:53:11,508 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_8 ... 
2026-03-29 23:53:11,697 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_9 ... 
2026-03-29 23:53:11,982 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_change_period_with_existing_sheet_line ... 
2026-03-29 23:53:12,068 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: ====================================================================== 
2026-03-29 23:53:12,068 341 ERROR odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: FAIL: TestHrTimesheetSheet.test_change_period_with_existing_sheet_line
Traceback (most recent call last):
  File "/__w/rbkk-oca/rbkk-oca/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py", line 635, in test_change_period_with_existing_sheet_line
    self.assertEqual(len(sheet_form.line_ids), 7)
AssertionError: 0 != 7
 
2026-03-29 23:53:12,078 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_different_weeks_different_years ... 
2026-03-29 23:53:12,203 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_employee_no_user ... 
2026-03-29 23:53:12,389 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_end_date_before_start_date ... 
2026-03-29 23:53:12,521 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_no_copy ... 
2026-03-29 23:53:12,618 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_no_overlap ... 
2026-03-29 23:53:12,757 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_onchange_project_id_merging_timesheets ... 
2026-03-29 23:53:13,010 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_review_policy_default ... 
2026-03-29 23:53:13,117 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_same_week_different_years ... 
2026-03-29 23:53:13,245 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_sheet_range_daily ... 
2026-03-29 23:53:13,349 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_sheet_range_monthly ... 
2026-03-29 23:53:13,453 341 INFO odoo odoo.addons.hr_timesheet_sheet.tests.test_hr_timesheet_sheet: Starting TestHrTimesheetSheet.test_workflow ... 
2026-03-29 23:53:14,012 341 INFO odoo odoo.addons.base.models.ir_attachment: filestore gc 6 checked, 6 removed 
2026-03-29 23:53:14,081 341 INFO odoo odoo.modules.loading: Module hr_timesheet_sheet loaded in 8.10s (incl. 7.02s test), 519 queries (+6693 test, +519 other) 
2026-03-29 23:53:14,081 341 ERROR odoo odoo.modules.loading: Module hr_timesheet_sheet: 9 failures, 0 errors of 29 tests

@yostashiro

Copy link
Copy Markdown
Member

There is an error with stock_move_actual_date as well:

2026-03-29 23:52:49,232 341 INFO odoo odoo.addons.stock_move_actual_date.tests.test_stock_move_actual_date: Starting TestStockMoveActualDate.test_svl_actual_date_manual_periodic ... 
2026-03-29 23:52:49,337 341 INFO odoo odoo.addons.stock_move_actual_date.tests.test_stock_move_actual_date: ====================================================================== 
2026-03-29 23:52:49,337 341 ERROR odoo odoo.addons.stock_move_actual_date.tests.test_stock_move_actual_date: FAIL: TestStockMoveActualDate.test_svl_actual_date_manual_periodic
Traceback (most recent call last):
  File "/__w/rbkk-oca/rbkk-oca/stock_move_actual_date/tests/test_stock_move_actual_date.py", line 163, in test_svl_actual_date_manual_periodic
    self.assertEqual(
AssertionError: datetime.date(2026, 3, 30) != datetime.date(2026, 3, 29)
 
2026-03-29 23:52:49,813 341 INFO odoo odoo.addons.base.models.ir_attachment: filestore gc 0 checked, 0 removed 
2026-03-29 23:52:49,879 341 INFO odoo odoo.modules.loading: Module stock_move_actual_date loaded in 4.11s (incl. 2.93s test), 349 queries (+1325 test, +349 other) 
2026-03-29 23:52:49,879 341 ERROR odoo odoo.modules.loading: Module stock_move_actual_date: 1 failures, 0 errors of 7 tests 

@yostashiro

Copy link
Copy Markdown
Member

@nobuQuartile @nobuQuartile The earlier errors must have come from the timezone issues. Please review OCA/timesheet#889. We also need to take care of the issue with stock_move_actual_date as well.

@yostashiro yostashiro merged commit 4390afe into 18.0 Mar 30, 2026
2 of 5 checks passed
@AungKoKoLin1997

Copy link
Copy Markdown
Contributor

I am not very sure about the root cause of tests failing from hr_timesheet_sheet but one test case of stock_move_actual_date is because of we didn't use freeze_time() intentionally.
https://github.com/OCA/stock-logistics-workflow/blob/9f77258805a00972c3d8ecc8e3aca66423cd011d/stock_move_actual_date/tests/test_stock_move_actual_date.py#L157-L165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants