Skip to content
Snippets Groups Projects
Commit f7461a66 authored by William Henrotin's avatar William Henrotin
Browse files

[FIX] purchase: open orderpoint same date than confirmation


Testing orderpoint generation assumes the whole test is done the same
day. The assert could failed if the test is run right before midnight
and end the day after.

This commit ensure the time is frozen during all the tests about
orderpoints generation

closes odoo/odoo#77135

Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
parent 6bdc99f8
Branches
Tags
No related merge requests found
......@@ -3,6 +3,7 @@
from datetime import datetime as dt
from datetime import timedelta as td
from freezegun import freeze_time
from odoo import SUPERUSER_ID
from odoo.tests import Form
......@@ -10,6 +11,7 @@ from odoo.tests.common import SavepointCase
from odoo.exceptions import UserError
@freeze_time("2021-01-14 09:12:15")
class TestReorderingRule(SavepointCase):
@classmethod
def setUpClass(cls):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment