From 2d48aa7ac8ae93713ce669a72d0c391f74f6407c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80ngel=20=C3=80lvarez?= Date: Tue, 14 Dec 2021 15:37:39 +0100 Subject: [PATCH] remove unnecessary check when create a list --- plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan.py b/plan.py index 4471fdf..ea7ae7c 100644 --- a/plan.py +++ b/plan.py @@ -150,7 +150,7 @@ class Plan(ModelSQL, ModelView): if input_.product.boms: product_bom = input_.product.boms[0].bom res.append((input_.product.id, product_bom.id)) - if product_bom.id not in (x[1] for x in res if x): + if product_bom.id not in (x[1] for x in res): res += self.find_boms(product_bom.inputs) return res