Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Switzerland - Accounting

Entity: res.partner.bank

Compute Method: _compute_l10n_ch_qr_iban

Inputs Method Outputs
  • acc_number
  • sanitized_acc_number
for record in self:
            try:
                validate_qr_iban(record.acc_number)
                valid_qr_iban = True
            except ValidationError:
                valid_qr_iban = False
            if valid_qr_iban:
                record.l10n_ch_qr_iban = record.sanitized_acc_number
            else:
                record.l10n_ch_qr_iban = None

Back to entity