From 1b8f2e0ff5d8f3760b33a6cb6c7889704f152aca Mon Sep 17 00:00:00 2001 From: David Date: Fri, 31 May 2024 15:26:39 +0200 Subject: [PATCH] [FIX] partner_statement: tests date relativity Depending on the day running the test, it will success or not. --- partner_statement/tests/test_activity_statement.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/partner_statement/tests/test_activity_statement.py b/partner_statement/tests/test_activity_statement.py index 1081beb0..c48f762f 100644 --- a/partner_statement/tests/test_activity_statement.py +++ b/partner_statement/tests/test_activity_statement.py @@ -3,11 +3,14 @@ from datetime import date +from freezegun import freeze_time + from odoo import fields from odoo.tests import new_test_user from odoo.tests.common import TransactionCase +@freeze_time("2024-05-01", tick=True) class TestActivityStatement(TransactionCase): """Tests for Activity Statement."""