From f4146bf83094f8b11817bdcf6b8155c7471bf7f3 Mon Sep 17 00:00:00 2001 From: BernatPForgeFlow Date: Wed, 23 Aug 2023 16:49:03 +0200 Subject: [PATCH] [IMP] stock_buffer_route: Do not consider other locations Buy routes Considering all buy routes should not be the default behaviour. If this is needed should be in a customized module. --- stock_buffer_route/models/stock_buffer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stock_buffer_route/models/stock_buffer.py b/stock_buffer_route/models/stock_buffer.py index 2b3dcbc66..61eb76c42 100644 --- a/stock_buffer_route/models/stock_buffer.py +++ b/stock_buffer_route/models/stock_buffer.py @@ -145,7 +145,6 @@ def _get_location_routes_of_parents(self, routes, parents): ) & parents ) - or any(rule.action == "buy" for rule in route.rule_ids) ) def get_parents(self):