Skip to content
Snippets Groups Projects
Commit 4df53aae authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo) Committed by Nicolas Lempereur
Browse files

[FIX] sale_stock: test failing depending on actual date


After 0411dda6
the associated test fail in certain time frame due to the datetime check

closes odoo/odoo#75697

X-original-commit: 55fac5d3
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent e2dc415c
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ class TestSaleExpectedDate(ValuationReconciliationTestCommon):
picking._action_done()
self.assertEqual(picking.state, 'done', "Picking not processed correctly!")
self.assertEqual(fields.Date.today(), sale_order.effective_date, "Wrong effective date on sale order!")
self.assertEqual(fields.Date.context_today(sale_order), sale_order.effective_date, "Wrong effective date on sale order!")
def test_sale_order_commitment_date(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment