[IMP] l10n_ch: fix typo in UserError

closes odoo/odoo#76975

X-original-commit: 704fc0fa9e0d8eecd2f15a7f36f1320a9ed2e717
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
oco-odoo
2021-09-22 15:08:59 +00:00
parent bda930b602
commit 1bdfdae121
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -1697,6 +1697,14 @@ msgid ""
"have a complete postal address (street, zip, city and country)."
msgstr ""
#. module: l10n_ch
#: code:addons/l10n_ch/models/res_bank.py:0
#, python-format
msgid ""
"The partner must have a complete postal address (street, zip, "
"city and country)."
msgstr ""
#. module: l10n_ch
#: code:addons/l10n_ch/models/res_bank.py:0
#, python-format
+1 -1
View File
@@ -343,7 +343,7 @@ class ResPartnerBank(models.Model):
return _("The partner set on the bank account meant to receive the payment (%s) must have a complete postal address (street, zip, city and country).", self.acc_number)
if debtor_partner and not _partner_fields_set(debtor_partner):
return _("The partner the QR-code must have a complete postal address (street, zip, city and country).")
return _("The partner must have a complete postal address (street, zip, city and country).")
if self.l10n_ch_qr_iban and not self._is_qr_reference(structured_communication):
return _("When using a QR-IBAN as the destination account of a QR-code, the payment reference must be a QR-reference.")