[IMP] stock_reserve_rule: black, isort, prettier

This commit is contained in:
Sébastien Alix
2021-08-11 11:56:51 +02:00
parent 2ffe854dd5
commit 46c12c8080
4 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1 @@
../../../../stock_reserve_rule

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

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)