From 494e89d3035d06f86be62f812867771e6f7d1863 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Sat, 31 Aug 2024 15:14:41 +0700 Subject: [PATCH] [UPD] ssi_stock * Koreksi algo acquisition value pd production lot --- ssi_stock/models/stock_production_lot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssi_stock/models/stock_production_lot.py b/ssi_stock/models/stock_production_lot.py index 910e9a8..2178bf4 100644 --- a/ssi_stock/models/stock_production_lot.py +++ b/ssi_stock/models/stock_production_lot.py @@ -63,6 +63,6 @@ def _compute_stock_move_line(self): ) serial_number_acquisition_value = fields.Float( string="Acquisition Value", - related="last_stock_move_line_id.move_id.price_unit", + related="first_stock_move_line_id.move_id.price_unit", store=True, )