Skip to content

Commit

Permalink
[FIX] default_warehouse_from_sale_team: update default journal retrieval
Browse files Browse the repository at this point in the history
Change the method previously used as a default value for the journal_id
to retrieve the default journal to the new method defined to search the
default journal.
  • Loading branch information
CLaurelB authored and luisg123v committed Oct 20, 2023
1 parent c9d761a commit 5fc9d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default_warehouse_from_sale_team/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def _onchange_team_id(self):
"default_move_type": self.move_type,
"default_currency_id": self.currency_id.id,
}
default_journal = self.with_context(**default_journal_ctx)._get_default_journal()
default_journal = self.with_context(**default_journal_ctx)._search_default_journal()
self.journal_id = default_journal

0 comments on commit 5fc9d27

Please sign in to comment.