File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
account_credit_control/tests Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 66from datetime import datetime
77
88from dateutil import relativedelta
9+ from freezegun import freeze_time
910
1011from odoo import fields
1112from odoo .exceptions import AccessError , UserError
1617
1718class TestCreditControlRunCase (AccountTestInvoicingCommon ):
1819 @classmethod
20+ @freeze_time ("2025-04-24" )
1921 def setUpClass (cls ):
2022 super ().setUpClass ()
2123 cls .env .user .groups_id |= cls .env .ref (
@@ -135,6 +137,7 @@ def test_generate_credit_lines(self):
135137 regex_result = re .search (report_regex , control_run .report )
136138 self .assertIsNotNone (regex_result )
137139
140+ @freeze_time ("2025-04-24" )
138141 def test_generate_credit_lines_with_max_level (self ):
139142 """
140143 Test the method generate_credit_lines with max level group.
You can’t perform that action at this time.
0 commit comments