From cc9963c0ddb51b2b56c96267c9f14a004ab6c16d Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Mon, 31 May 2021 11:37:22 +0200 Subject: [PATCH] Revert "Check the new boms with the boms we have in the cost_plan to avoid recursion." In version 6 or higher, you dont need this commit. This reverts commit 89ce80efd96f8ddb3fc52f241313e0011f2cf5aa. --- plan.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plan.py b/plan.py index 4724ffd..3063898 100644 --- a/plan.py +++ b/plan.py @@ -163,16 +163,11 @@ class Plan(ModelSQL, ModelView): return boms products = set(self.find_boms()) - new_boms = set() for index, (product_id, _) in enumerate(products): - new_boms.add(product_id) boms['add'].append((index, { 'product': product_id, 'bom': None, })) - - if {x.product.id for x in self.boms if x.product} == new_boms: - return {} return boms def get_products_tree(self, name):