From bbba2f80e8c0152e00abe1335a7c4c09cbe12c79 Mon Sep 17 00:00:00 2001 From: ArnauCForgeFlow Date: Fri, 15 Nov 2024 12:58:08 +0100 Subject: [PATCH] [IMP] stock_cycle_count: Remove useless filtered --- stock_cycle_count/models/stock_quant.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stock_cycle_count/models/stock_quant.py b/stock_cycle_count/models/stock_quant.py index bd5f367d0..39e6183b5 100644 --- a/stock_cycle_count/models/stock_quant.py +++ b/stock_cycle_count/models/stock_quant.py @@ -31,10 +31,6 @@ class StockQuant(models.Model): ("location_dest_id", "=", rec.location_id.id), ], order="create_date asc", - ).filtered( - lambda x: not x.company_id.id - or not rec.company_id.id - or rec.company_id.id == x.company_id.id ) move = moves[len(moves) - 1] move.write(