mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 14:42:01 +02:00
Initial commit: L10N_Europe packages
This commit is contained in:
commit
9803722600
2377 changed files with 380711 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class SwissSetupBarBankConfigWizard(models.TransientModel):
|
||||
_inherit = 'account.setup.bank.manual.config'
|
||||
|
||||
@api.onchange('acc_number')
|
||||
def _onchange_recompute_qr_iban(self):
|
||||
# Needed because ORM doesn't properly call the compute in 'new' mode, due to inherits, and
|
||||
# we want this field to be displayed in the wizard. We need to manually set acc_number
|
||||
# on the inherits m2o before calling the compute function manually.
|
||||
self.res_partner_bank_id.acc_number = self.acc_number
|
||||
self.res_partner_bank_id._compute_l10n_ch_qr_iban()
|
||||
self.l10n_ch_qr_iban = self.res_partner_bank_id.l10n_ch_qr_iban
|
||||
Loading…
Add table
Add a link
Reference in a new issue