Skip to content

Commit bc35872

Browse files
committed
Merge PR #2159 into 16.0
Signed-off-by jbaudoux
2 parents cdad438 + 9fbcafa commit bc35872

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stock_valuation_layer_accounting_date/tests/test_stock_valuation_layer_accounting_date.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ class TestStockValuationStandard(TestStockValuationStandard):
1717
def setUp(self):
1818
super(TestStockValuationStandard, self).setUp()
1919

20-
@freeze_time("2022-12-02 23:00:00", tz_offset=9)
20+
@freeze_time("2022-12-02 23:00:00")
2121
def test_svl_accounting_date_real_time(self):
22-
self.product1.product_tmpl_id.categ_id.property_valuation = "real_time"
22+
self.product1.categ_id.property_valuation = "real_time"
23+
self.env.user.tz = "Asia/Tokyo"
2324
self._make_in_move(self.product1, 10)
2425
valuation_layer = self.product1.stock_valuation_layer_ids
2526
self.assertEqual(valuation_layer.accounting_date, date(2022, 12, 3))

0 commit comments

Comments
 (0)