Repository
OCA/l10n-switzerland · module folder · Try on Runboat
Module version
1.0.3
Category
Localization
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/l10n-switzerland
Last tracking update
2026-08-07 07:47:26
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Thierry Ducrest, simonev, Weblate, OCA-git-bot, oca-travis, Hai Lang, sonhd
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
ebill_paynet, ebill_postfinance, l10n_ch_pain_base, l10n_ch_pain_credit_transfer, oca_all
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
add_custom_fields_on_bank add custom fields on bank res.bank form Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank list Inherits base.view_res_bank_tree
view_bank_search res.bank.search res.bank search New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • partner_banks_to_show(self)
    Extend method from account_payment_partner to add specific logic for switzerland bank payments if base method does not give a result

New fields (4)
  • city Char
    help='City of the bank' string='City'
  • clearing Char
    help='Swiss unique bank identifier also used in IBAN number' string='Clearing number'
  • code Char
    help='Internal reference' string='Code'
  • country_code Char
    readonly=True related='country.code' string='Country code'
Public methods (3)
  • is_swiss_post(self)
  • name_get(self)
    Format displayed name
  • name_search(self, name, args=None, operator='ilike', limit=80)
    @api.model
    Extends to look on bank code, bic, name, street and city

New fields (0)

No new fields.

Public methods (3)
  • create(self, vals)
    @api.model
    acc_number is mandatory for model, but in localization it could be not mandatory when we have postal number, so we compute acc_number in onchange methods and check it here also
  • is_isr_issuer(self)
    Supplier will provide ISR/QRR reference numbers in two cases: - postal account number starting by 01 or 03 - QR-IBAN
  • onchange_partner_set_acc_number(self)
    @api.onchange('partner_id')

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…