[IMP] stock_reserve_rule: Correctly pass arguments

This commit is contained in:
Denis Roussel
2024-03-11 15:15:59 +01:00
parent 2c4bfbfaff
commit 01d56ca4d1

View File

@@ -157,11 +157,10 @@ class StockReserveRuleRemoval(models.Model):
removal_rule.rule_id.location_id
):
msg = _(
"Removal rule '{}' location has to be a child "
"of the rule location '{}'."
).format(
removal_rule.name,
removal_rule.rule_id.location_id.display_name,
"Removal rule '%(removal_name)s' location has to be a child "
"of the rule location '%(child_rule)s'.",
removal_name=removal_rule.name,
child_rule=removal_rule.rule_id.location_id.display_name,
)
raise ValidationError(msg)