diff --git a/stock_move_location_dest_constraint_base/models/stock_location.py b/stock_move_location_dest_constraint_base/models/stock_location.py index 87adf8f3c2df..5025a9e4aa6c 100644 --- a/stock_move_location_dest_constraint_base/models/stock_location.py +++ b/stock_move_location_dest_constraint_base/models/stock_location.py @@ -20,9 +20,9 @@ def _set_bypass_on_existing_locations(self): existing_locations = self.search([]) existing_locations.write({'bypass_constraints': True}) - def _get_putaway_strategy(self, product): + def get_putaway_strategy(self, product): """Activate constraint when looking for putaway rules""" self = self.with_context( _filter_on_constraints=True, _constraint_product=product.id ) - return super()._get_putaway_strategy(product) + return super().get_putaway_strategy(product)