From 3bff4832b794e92bb0b4cb891287208e6180b9ae Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Fri, 22 Mar 2024 18:12:06 +0100 Subject: [PATCH] [FIX] stock_release_channel_propagate_channel_picking Fix failing test when more channels are loaded --- .../tests/test_procurement.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stock_release_channel_propagate_channel_picking/tests/test_procurement.py b/stock_release_channel_propagate_channel_picking/tests/test_procurement.py index 7c069a5dd4..967fb43192 100644 --- a/stock_release_channel_propagate_channel_picking/tests/test_procurement.py +++ b/stock_release_channel_propagate_channel_picking/tests/test_procurement.py @@ -1,4 +1,5 @@ # Copyright 2022 ACSONE SA/NV (http://www.acsone.eu) +# Copyright 2024 Jacques-Etienne Baudoux (BCIM) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo.addons.stock_release_channel.tests.common import ReleaseChannelCase @@ -15,6 +16,9 @@ def setUpClass(cls): cls._update_qty_in_location(cls.wh.lot_stock_id, cls.product1, 20.0) cls._update_qty_in_location(cls.wh.lot_stock_id, cls.product2, 20.0) cls.wh.out_type_id.propagate_to_pickings_chain = True + cls.env["stock.release.channel"].search( + [("id", "!=", cls.default_channel.id)] + ).active = False @classmethod def _create_propagate_channel(cls):