Skip to content

Commit

Permalink
[FIX] flake 8
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Sep 28, 2016
1 parent 70c7191 commit a8282df
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions stock_operating_unit/model/stock.py
Expand Up @@ -83,11 +83,10 @@ def _check_company_operating_unit(self):
def _check_parent_operating_unit(self):
for rec in self:
if (
rec.location_id
and rec.location_id.usage == 'internal'
and rec.operating_unit_id
and rec.operating_unit_id !=
rec.location_id.operating_unit_id
rec.location_id and
rec.location_id.usage == 'internal' and
rec.operating_unit_id and
rec.operating_unit_id != rec.location_id.operating_unit_id
):
raise UserError(_('Configuration error!\nThe Parent\
Stock Location must belong to the same Operating Unit.'))
Expand Down

0 comments on commit a8282df

Please sign in to comment.