Skip to content

Commit

Permalink
[IMP] stock_operating_unit: proper error message in location misconfi…
Browse files Browse the repository at this point in the history
…guration
  • Loading branch information
AaronHForgeFlow committed Oct 19, 2023
1 parent fcc547c commit 6b6bf75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stock_operating_unit/model/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def _check_required_operating_unit(self):
if rec.usage not in ("supplier", "customer") and not rec.operating_unit_id:
raise UserError(
_(
"Configuration error. The operating unit should be "
"assigned to internal locations only."
"Configuration error. Internal locations should have an operating unit"
)
)
if rec.usage in ("supplier", "customer") and rec.operating_unit_id:
Expand Down

0 comments on commit 6b6bf75

Please sign in to comment.