[IMP] stock_reserve_rule: black, isort, prettier

This commit is contained in:
Sébastien Alix
2021-08-11 11:56:51 +02:00
committed by Denis Roussel
parent 6bdccd2419
commit 1a39f8435f
2 changed files with 4 additions and 2 deletions

View File

@@ -8,5 +8,6 @@ class StockPickingType(models.Model):
_inherit = "stock.picking.type"
reserve_rule_ids = fields.Many2many(
comodel_name="stock.reserve.rule", inverse_name="picking_type_ids",
comodel_name="stock.reserve.rule",
inverse_name="picking_type_ids",
)

View File

@@ -163,7 +163,8 @@ class StockReserveRuleRemoval(models.Model):
"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.name,
removal_rule.rule_id.location_id.display_name,
)
raise ValidationError(msg)