Skip to content
Snippets Groups Projects
Commit 92f7ecc2 authored by Olivier Colson's avatar Olivier Colson
Browse files

[FIX] l10n_ch: only compute postal reference with sanitized number if no iban...

[FIX] l10n_ch: only compute postal reference with sanitized number if no iban reference on the account
parent 09badbed
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,8 @@ class ResPartnerBank(models.Model):
for record in self:
if record.acc_type == 'iban':
record.l10n_ch_postal = record._retrieve_l10n_ch_postal(record.sanitized_acc_number)
record.l10n_ch_postal = record.sanitized_acc_number
else:
record.l10n_ch_postal = record.sanitized_acc_number
def _retrieve_l10n_ch_postal(self, iban):
""" Reads a swiss postal account number from a an IBAN and returns it as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment