diff --git a/sf_tool_management/models/functional_tool_enroll.py b/sf_tool_management/models/functional_tool_enroll.py index d762c865..8fb781f8 100644 --- a/sf_tool_management/models/functional_tool_enroll.py +++ b/sf_tool_management/models/functional_tool_enroll.py @@ -40,7 +40,7 @@ class StockLot(models.Model): sf_secret_key = sf_sync_config['sf_secret_key'] headers = Common.get_headers(self, token, sf_secret_key) str_url = sf_sync_config['sf_url'] + "/api/tool_material_stock/create" - objs_all = self.env['stock.lot'].search([('id', '=', self.id)]) + objs_all = self.env['stock.lot'].search([('id', '=', self.id), ('active', 'in', [True, False])]) tool_material_stock_list = [] if objs_all: for item in objs_all: