diff --git a/addons/stock/models/stock_rule.py b/addons/stock/models/stock_rule.py index e33c63afd92..e62d501c5fc 100644 --- a/addons/stock/models/stock_rule.py +++ b/addons/stock/models/stock_rule.py @@ -502,7 +502,7 @@ class ProcurementGroup(models.Model): """ Find a pull rule for the location_id, fallback on the parent locations if it could not be found. """ - result = False + result = self.env['stock.rule'] location = location_id while (not result) and location: domain = self._get_rule_domain(location, values)