Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions account_operating_unit/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def _default_operating_unit_id(self):
def _onchange_operating_unit(self):
if self.operating_unit_id and (
not self.journal_id
or self.journal_id.operating_unit_id != self.operating_unit_id
or self.journal_id.sudo().operating_unit_id != self.operating_unit_id
):
journal = self.env["account.journal"].search(
[("type", "=", self.journal_id.type)]
[("type", "=", self.journal_id.sudo().type)]
)
jf = journal.filtered(
lambda aj: aj.operating_unit_id == self.operating_unit_id
Expand Down
Loading