From d7597359ba93561f468242d05a8b8d594ce6ed2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Mon, 31 Mar 2025 16:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=A4=9A=E4=B8=AA=E8=A1=A8?= =?UTF-8?q?=E9=9D=A2=E5=B7=A5=E8=89=BA=EF=BC=8C=E7=A1=AE=E8=AE=A4=E4=BE=9B?= =?UTF-8?q?=E8=B4=A7=E8=B7=AF=E7=BA=BF=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 0c825fa3..2bf1ea35 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -355,9 +355,9 @@ class StockRule(models.Model): ) for p in production_process: logging.info('production_process:%s' % p.name) - process_parameter = production_item.product_id.model_process_parameters_ids.filtered( + process_parameters = production_item.product_id.model_process_parameters_ids.filtered( lambda pm: pm.process_id.id == p.id) - if process_parameter: + for process_parameter in process_parameters: i += 1 route_production_process = self.env[ 'mrp.routing.workcenter'].search(