Skip to content

Commit

Permalink
[FIX] account_operating_unit: only define operating unit in exchange …
Browse files Browse the repository at this point in the history
…difference moves if the OU is unique
  • Loading branch information
alan196 committed Apr 30, 2024
1 parent ef8f85d commit 04b5934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_operating_unit/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _check_move_operating_unit(self):

def _create_exchange_difference_move(self):
res = super()._create_exchange_difference_move()
if res and self.operating_unit_id:
if res and self.operating_unit_id and len(self.operating_unit_id) == 1:
res.operating_unit_id = self.operating_unit_id
res.line_ids.write({"operating_unit_id": self.operating_unit_id.id})
return res
Expand Down

0 comments on commit 04b5934

Please sign in to comment.