Skip to content

Commit

Permalink
[FIX] account_operating_unit: create exchange difference move with op…
Browse files Browse the repository at this point in the history
…erating unit
  • Loading branch information
alan196 committed Feb 26, 2024
1 parent 6a7eaf2 commit 8981c3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions account_operating_unit/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ 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:
res.operating_unit_id = self.operating_unit_id
res.line_ids.write({"operating_unit_id": self.operating_unit_id.id})
return res


class AccountMove(models.Model):
_inherit = "account.move"
Expand Down

0 comments on commit 8981c3e

Please sign in to comment.