remove unnecessary check when create a list

This commit is contained in:
Àngel Àlvarez 2021-12-14 15:37:39 +01:00
parent 1db37e3fd2
commit 2d48aa7ac8
1 changed files with 1 additions and 1 deletions

View File

@ -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