diff --git a/l10n_ch_pain_base/models/account_move_line.py b/l10n_ch_pain_base/models/account_move_line.py index 4c92f8557..117054526 100644 --- a/l10n_ch_pain_base/models/account_move_line.py +++ b/l10n_ch_pain_base/models/account_move_line.py @@ -12,10 +12,10 @@ def _prepare_payment_line_vals(self, payment_order): if self.move_id.partner_bank_id and self.move_id._has_isr_ref(): if self.move_id.partner_bank_id._is_qr_iban(): vals["communication_type"] = "qrr" - vals["communication"] = self.move_id.payment_reference else: vals["local_instrument"] = "CH01" vals["communication_type"] = "isr" + vals["communication"] = self.move_id.payment_reference if vals["communication"]: vals["communication"] = vals["communication"].replace(" ", "") return vals