Skip to content

Commit

Permalink
Merge PR OCA#1329 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 9, 2024
2 parents 665d8a6 + 1c63d10 commit 79e4c34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion account_payment_mode/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ def _default_inbound_payment_methods(self):
method_info = self.env[
"account.payment.method"
]._get_payment_method_information()
allowed_modes = ["unique"]
if "payment_provider_id" in self.env["account.payment.method.line"]._fields:
allowed_modes.append("electronic")
unique_codes = tuple(
code for code, info in method_info.items() if info.get("mode") == "unique"
code
for code, info in method_info.items()
if info.get("mode") in allowed_modes
)
all_in = self.env["account.payment.method"].search(
[
Expand Down

0 comments on commit 79e4c34

Please sign in to comment.