From 4e1b9c02962a4bcab2fbaea08c75cc90028f2f60 Mon Sep 17 00:00:00 2001 From: ArnauCForgeFlow Date: Thu, 28 Nov 2024 10:08:26 +0100 Subject: [PATCH] [IMP] stock_cycle_count: add rec company_id to domain --- stock_cycle_count/models/stock_quant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock_cycle_count/models/stock_quant.py b/stock_cycle_count/models/stock_quant.py index 39e6183b5c6..1a4d6608c12 100644 --- a/stock_cycle_count/models/stock_quant.py +++ b/stock_cycle_count/models/stock_quant.py @@ -29,7 +29,8 @@ def _apply_inventory(self): "|", ("location_id", "=", rec.location_id.id), ("location_dest_id", "=", rec.location_id.id), - ], + ] + + ([("company_id", "=", rec.company_id.id)] if rec.company_id else []), order="create_date asc", ) move = moves[len(moves) - 1]