mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_reserve_rule: black, isort, prettier
This commit is contained in:
committed by
Denis Roussel
parent
6bdccd2419
commit
1a39f8435f
@@ -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",
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user