Skip to content
Snippets Groups Projects
Commit 0dc9a2d4 authored by Pierre Masereel's avatar Pierre Masereel
Browse files

[FIX] point_of_sale: use correct rate date in test

Since changes made in currency rate default value made in this PR
https://github.com/odoo/odoo/pull/76513

 the date is stored based on user
timezone, and so doesn't work if the test runs around midnight with the
belgian timezone on the servers.

closes odoo/odoo#78462

X-original-commit: 83873965
Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 84029946
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
from random import randint
from datetime import datetime
from odoo import fields, tools
from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ValuationReconciliationTestCommon
......@@ -272,6 +273,7 @@ class TestPoSCommon(ValuationReconciliationTestCommon):
cls.env['res.currency.rate'].create({
'rate': 0.5,
'currency_id': cls.other_currency.id,
'name': datetime.today().date(),
})
other_cash_journal = cls.env['account.journal'].create({
'name': 'Cash Other',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment