Skip to content

Commit b3cdba1

Browse files
committed
Merge PR OCA#527 into 18.0
Signed-off-by pedrobaeza
2 parents 62d2285 + d946d43 commit b3cdba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

account_credit_control/tests/test_credit_control_run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datetime import datetime
77

88
from dateutil import relativedelta
9+
from freezegun import freeze_time
910

1011
from odoo import fields
1112
from odoo.exceptions import AccessError, UserError
@@ -16,6 +17,7 @@
1617

1718
class 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.

0 commit comments

Comments
 (0)