From efaccdb81b9771ea8de0d10dc501a182230b6699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Mar 2025 23:58:06 +0100 Subject: [PATCH] Allow to update production cost price updated of stock move in a closed period The update of a production cost can happen when the input moves are in a closed period. Closes #13944 --- modules/production/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/production/stock.py b/modules/production/stock.py index bc0a272aca..242c6ea37e 100644 --- a/modules/production/stock.py +++ b/modules/production/stock.py @@ -89,6 +89,7 @@ class Move(metaclass=PoolMeta): | (t.production_output == Null))), 'production.msg_stock_move_production_single'), ] + cls._allow_modify_closed_period.add('production_cost_price_updated') @fields.depends( 'production_output', '_parent_production_output.company',