Skip to content

Commit

Permalink
Merge PR #652 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 26, 2023
2 parents 74d7080 + 0d16f0d commit 174085e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def action_select_gocardless_bank(self):
_("To continue configure bank account on journal %s")
% (self.journal_id.display_name)
)
country = self.journal_id.bank_account_id.company_id.country_id
country = (
self.journal_id.bank_account_id.company_id or self.journal_id.company_id
).country_id
response = requests.get(
f"{GOCARDLESS_ENDPOINT}/institutions/",
params={"country": country.code},
Expand Down

0 comments on commit 174085e

Please sign in to comment.