mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -17,9 +17,10 @@ class TestStockValuationStandard(TestStockValuationStandard):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestStockValuationStandard, self).setUp()
|
super(TestStockValuationStandard, self).setUp()
|
||||||
|
|
||||||
@freeze_time("2022-12-02 23:00:00", tz_offset=9)
|
@freeze_time("2022-12-02 23:00:00")
|
||||||
def test_svl_accounting_date_real_time(self):
|
def test_svl_accounting_date_real_time(self):
|
||||||
self.product1.product_tmpl_id.categ_id.property_valuation = "real_time"
|
self.product1.categ_id.property_valuation = "real_time"
|
||||||
|
self.env.user.tz = "Asia/Tokyo"
|
||||||
self._make_in_move(self.product1, 10)
|
self._make_in_move(self.product1, 10)
|
||||||
valuation_layer = self.product1.stock_valuation_layer_ids
|
valuation_layer = self.product1.stock_valuation_layer_ids
|
||||||
self.assertEqual(valuation_layer.accounting_date, date(2022, 12, 3))
|
self.assertEqual(valuation_layer.accounting_date, date(2022, 12, 3))
|
||||||
|
|||||||
Reference in New Issue
Block a user