Skip to content

Commit

Permalink
is_qr_iban() disappeared, but if has_isr_ref is true, iban is a qr_ib…
Browse files Browse the repository at this point in the history
…an, check is being done in the base localisation.
  • Loading branch information
davidwul committed May 20, 2024
1 parent 1dc9e62 commit 339b643
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions l10n_ch_pain_base/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ def _prepare_payment_line_vals(self, payment_order):
and self.move_id._has_isr_ref()
and self.move_id.partner_bank_id
):
if self.move_id.partner_bank_id._is_qr_iban():
vals["communication_type"] = "qrr"
vals["communication"] = self.move_id.payment_reference
if vals["communication"]:
vals["communication"] = vals["communication"].replace(" ", "")
vals["communication_type"] = "qrr"
vals["communication"] = self.move_id.payment_reference.replace(" ", "")
return vals

0 comments on commit 339b643

Please sign in to comment.