Skip to content

Commit

Permalink
[FIX] stock_release_channel_propagate_channel_picking
Browse files Browse the repository at this point in the history
Fix failing test when more channels are loaded
  • Loading branch information
jbaudoux committed Mar 27, 2024
1 parent e0742c4 commit 3bff483
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2022 ACSONE SA/NV (http://www.acsone.eu)
# Copyright 2024 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo.addons.stock_release_channel.tests.common import ReleaseChannelCase

Expand All @@ -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):
Expand Down

0 comments on commit 3bff483

Please sign in to comment.