Switzerland - Bank type

l10n_ch_base_bank
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_base_bank
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSThierry Ducrest, oca-travis, Weblate, OCA-git-bot, simonev, Hai Lang, sonhd
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base_iban
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - l10n_ch
    - l10n_multilang
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
view_bank_search res.bank.search res.bank search New
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')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/13.0/l10n_ch_base_bank
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, GitHub, oca-travis, Weblate, OCA-git-bot, Iryna Vushnevska
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base_iban
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - l10n_ch
    - l10n_multilang
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
view_bank_search res.bank.search res.bank search New
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')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/12.0/l10n_ch_base_bank
VERSION
VERSION 3.1.2
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, GitHub, OCA Transbot, Thierry Ducrest, oca-travis, Weblate, OCA-git-bot, Iryna Vyshnevska, OCA git bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base_iban
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - l10n_ch
    - l10n_multilang
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
view_bank_search res.bank.search res.bank search New
Models touched (4)

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)
    @api.multi
    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 (3)
  • l10n_ch_isr_subscription_chf Char
    help='The subscription number provided by the bank or Postfinance, used to generate ISR in CHF. eg. 01-162-8' oldname='isr_adherent_num' string='CHF ISR subscription number'
  • l10n_ch_isr_subscription_eur Char
    help='The subscription number provided by the bank or Postfinance, used to generate ISR in EUR. eg. 03-162-5' string='EUR ISR subscription number'
  • l10n_ch_postal Char
    oldname='ccp'
Public methods (3)
  • create(self, vals)
    @api.model
  • retrieve_acc_type(self, acc_number)
    @api.model
    Overridden method enabling the recognition of swiss postal bank account numbers.
  • write(self, vals)

New fields (0)

No new fields.

Public methods (5)
  • 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
  • onchange_acc_number_set_swiss_bank(self)
    @api.onchange('acc_number')
    Deduce information from IBAN and set postal number when undefined Bank is defined as: - Found bank by clearing when using iban For Postal number it can be: - a postal account in iban format, we transform acc_number
  • onchange_bank_set_acc_number(self)
    @api.onchange('bank_id')
  • onchange_l10n_ch_postal_set_acc_number(self)
    @api.onchange('l10n_ch_postal')
    If postal number changes and it's a postal bank update acc_number to postal number we don't want make acc_number as computed to have possibility set it manually and also avoid to shadow other logic on acc_number if exist
  • onchange_partner_set_acc_number(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/11.0/l10n_ch_base_bank
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Alexis de Lattre, Yannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Joel Grand-Guillaume, Pedro M. Baeza, Nicolas Bessi, GitHub, Paul Catinean, Stéphane Bidoul (ACSONE), unknown, Vincent Renaville, Nicolas Bessi (nbessi), OCA Transbot, vrenaville, Denis Leemann, Launchpad Translations on behalf of camptocamp, oca-travis, Weblate, mpanarin, Iryna Vyshnevska, Frédéric Garbely, Maxence Groine
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/bank-payment:
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
add_ccp_on_res_partner_bank Add isr adherent num and ccp on res partner bank res.partner.bank field Inherits base.view_partner_bank_form
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
customer_invoice_bbacomm_form account.invoice.form.inherit account.invoice field Inherits account.invoice_form
invoice_supplier_form supplier.account.invoice.form account.invoice field Inherits account.invoice_supplier_form
view_bank_search res.bank.search res.bank search New
Models touched (3)

New fields (0)

No new fields.

Public methods (2)
  • onchange_reference(self)
    @api.onchange('reference')
    Identify if the reference entered is of type ISR if it does, change reference_type
  • 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 (5)
  • ccp Char
    help='CCP/CP-Konto of the bank' size=11 string='CCP/CP-Konto'
  • 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)
    @api.multi
  • name_get(self)
    @api.multi
    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 (3)
  • acc_number Char
    string='Account/IBAN Number'
  • ccp Char
    store=True string='CCP/CP-Konto'
  • isr_adherent_num Char
    help='Your Bank adherent number to be printed in references of your ISR. This is not a postal account number.' oldname='bvr_adherent_num' size=11 string='Bank ISR adherent number'
Public methods (6)
  • create(self, vals)
    @api.model
    acc_number is mandatory for model, but in localization it could be not mandatory when we have ccp number, so we compute acc_number in onchange methods and check it here also
  • get_account_number(self)
    @api.multi
    Retrieve the correct bank number to used based on account type
  • onchange_acc_number_set_swiss_bank(self)
    @api.onchange('acc_number')
    Set the bank when possible and set ccp when undefined Bank is defined as: - Found bank with CCP matching Bank CCP - Swiss post when CCP is no matching a Bank CCP - Found bank by clearing when using iban For CCP it can be: - a postal account, we copy acc_number - a postal account in iban format, we transform acc_number - a bank account with CCP on the bank, we use ccp of the bank - otherwise there is no CCP to use
  • onchange_bank_set_acc_number(self)
    @api.onchange('bank_id')
  • onchange_ccp_set_acc_number(self)
    @api.onchange('ccp')
    If ccp changes and it's a postal bank update acc_number to ccp we don't want make acc_number as computed to have possibility set it manually and also avoid to shadow other logic on acc_number if exist
  • onchange_partner_set_acc_number(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/10.0/l10n_ch_base_bank
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Guewen Baconnier, Pedro M. Baeza, GitHub, Akim Juillerat, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, OCA-git-bot, Iryna Vushnevska, Timon Tschanz, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/bank-payment:
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
add_ccp_on_res_partner_bank Add ccp on res partner bank res.partner.bank field Inherits base.view_partner_bank_form
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
customer_invoice_bbacomm_form account.invoice.form.inherit account.invoice field Inherits account.invoice_form
invoice_supplier_form supplier.account.invoice.form account.invoice field Inherits account.invoice_supplier_form
view_bank_search res.bank.search res.bank search New
Models touched (3)

New fields (0)

No new fields.

Public methods (2)
  • onchange_reference(self)
    @api.onchange('reference')
    Identify if the reference entered is of type BVR if it does, change reference_type
  • 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 (5)
  • ccp Char
    help='CCP/CP-Konto of the bank' size=11 string='CCP/CP-Konto'
  • 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)
    @api.multi
  • name_get(self)
    @api.multi
    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 (3)
  • acc_number Char
    string='Account/IBAN Number'
  • bvr_adherent_num Char
    help='Your Bank adherent number to be printed in references of your BVR/ESR. This is not a postal account number.' size=11 string='Bank BVR/ESR adherent number'
  • ccp Char
    store=True string='CCP/CP-Konto'
Public methods (6)
  • create(self, vals)
    @api.model
    acc_number is mandatory for model, but in localization it could be not mandatory when we have ccp number, so we compute acc_number in onchange methods and check it here also
  • get_account_number(self)
    @api.multi
    Retrieve the correct bank number to used based on account type
  • onchange_acc_number_set_swiss_bank(self)
    @api.onchange('acc_number')
    Set the bank when possible and set ccp when undefined Bank is defined as: - Found bank with CCP matching Bank CCP - Swiss post when CCP is no matching a Bank CCP - Found bank by clearing when using iban For CCP it can be: - a postal account, we copy acc_number - a postal account in iban format, we transform acc_number - a bank account with CCP on the bank, we use ccp of the bank - otherwise there is no CCP to use
  • onchange_bank_set_acc_number(self)
    @api.onchange('bank_id')
  • onchange_ccp_set_acc_number(self)
    @api.onchange('ccp')
  • onchange_partner_set_acc_number(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/9.0/l10n_ch_base_bank
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSAlexis de Lattre, Yannick Vaucher, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Alexandre Saunier, OCA Transbot, oca-travis, Weblate, Frédéric Garbely
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/bank-payment:
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
add_ccp_on_res_partner_bank Add ccp on res partner bank res.partner.bank field Inherits base.view_partner_bank_form
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
customer_invoice_bbacomm_form account.invoice.form.inherit account.invoice field Inherits account.invoice_form
invoice_supplier_form supplier.account.invoice.form account.invoice field Inherits account.invoice_supplier_form
view_bank_search res.bank.search res.bank search New
Models touched (3)

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals)
    @api.model
    We override create in order to have customer invoices generated by the comercial flow as on change partner is not systemtically call
  • onchange_reference(self)
    @api.onchange('reference')
    Identify if the reference entered is of type BVR if it does, change reference_type

New fields (5)
  • ccp Char
    help='CCP/CP-Konto of the bank' size=11 string='CCP/CP-Konto'
  • 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)
    @api.multi
  • name_get(self)
    @api.multi
    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 (3)
  • acc_number Char
    string='Account/IBAN Number'
  • bvr_adherent_num Char
    help='Your Bank adherent number to be printed in references of your BVR/ESR. This is not a postal account number.' size=11 string='Bank BVR/ESR adherent number'
  • ccp Char
    store=True string='CCP/CP-Konto'
Public methods (5)
  • get_account_number(self)
    @api.multi
    Retrieve the correct bank number to used based on account type
  • onchange_acc_number_set_swiss_bank(self)
    @api.onchange('acc_number', 'acc_type')
    Set the bank when possible and set ccp when undefined Bank is defined as: - Found bank with CCP matching Bank CCP - Swiss post when CCP is no matching a Bank CCP - Found bank by clearing when using iban For CCP it can be: - a postal account, we copy acc_number - a postal account in iban format, we transform acc_number - a bank account with CCP on the bank, we use ccp of the bank - otherwise there is no CCP to use
  • onchange_bank_set_acc_number(self)
    @api.onchange('bank_id')
    If acc_number is empty and bank ccp is defined fill it
  • onchange_ccp_set_empty_acc_number(self)
    @api.onchange('ccp')
    If acc_number is empty and bank ccp is defined fill it
  • onchange_partner_set_acc_number(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/8.0/l10n_ch_base_bank
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Nicolas Bessi, Paul Catinean, Stéphane Bidoul (ACSONE), Nicolas Bessi (nbessi), OCA Transbot, vrenaville, oca-travis, Weblate, Olivier Jossen
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:28
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
add_ccp_on_res_partner_bank Add ccp on res partner bank res.partner.bank field Inherits base.view_partner_bank_form
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
invoice_form account.invoice.form.inherit account.invoice field Inherits account.invoice_form
invoice_supplier_form8 account.invoice.supplier.form.inherit account.invoice field Inherits account.invoice_supplier_form
view_bank_search res.bank.search res.bank search New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • create(self, vals)
    @api.model
    We override create in order to have customer invoices generated by the comercial flow as on change partner is not systemtically call
  • onchange_partner_bank(self, partner_bank_id=False)
    @api.multi
    update the reference invoice_type depending of the partner bank
  • onchange_partner_id(self, invoice_type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False)
    @api.multi
    Function that is called when the partner of the invoice is changed it will retrieve and set the good bank partner bank

New fields (4)
  • ccp Char
    help='CCP/CP-Konto of the bank' size=64 string='CCP/CP-Konto'
  • city Char
    help='City of the bank' string='City'
  • clearing Char
    help='Swiss unique bank identifier also used in IBAN number' size=64 string='Clearing number'
  • code Char
    help='Internal reference' size=64 string='Code'
Public methods (2)
  • name_get(self)
    @api.multi
    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 (3)
  • acc_number Char
    string='Account/IBAN Number'
  • bvr_adherent_num Char
    help='Your Bank adherent number to be printed in references of your BVR/ESR. This is not a postal account number.' size=11 string='Bank BVR/ESR adherent number'
  • ccp Char
    readonly=True related='bank.ccp' store=True string='CCP/CP-Konto'
Public methods (1)
  • get_account_number(self)
    @api.multi
    Retrieve the correct bank number to used based on account type
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/7.0/l10n_ch_base_bank
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYLocalization
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Matthieu Dietrich, Joel Grand-Guillaume, Nicolas Bessi, Stéphane Bidoul (ACSONE), unknown, Vincent Renaville, OCA Transbot, vrenaville, moylop260, Launchpad Translations on behalf of camptocamp, Cesar Andres, César Andrés
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Swiss bank type and fields
==========================

This addons will add different bank types required by specific swiss electronic
payment like DTA and ESR. It allows to manage both Post and Bank systems.

It'll perform some validation when entring bank account number or ESR number
in invoice and add some Swiss specific fields on bank.

This module is required if you want to use electornic payment in Switzerland.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
account_report_company_form_view_supplier account.invoice field Inherits account.invoice_supplier_form
add_ccp_on_res_partner_bank Add ccp on res partner bank res.partner.bank field Inherits base.view_partner_bank_form
add_custom_fields_on_bank add custom fields on bank res.bank field Inherits base.view_res_bank_form
add_custom_fields_on_bank_list add custom fields on bank list res.bank field Inherits base.view_res_bank_tree
invoice_form account.invoice.form.inherit account.invoice field Inherits account.invoice_form
invoice_supplier_form6 account.invoice.supplier.form.inherit account.invoice field Inherits account.invoice_supplier_form
invoice_supplier_form8 account.invoice.supplier.form.inherit account.invoice field Inherits account.invoice_supplier_form
view__bank_search res.bank.search res.bank search New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • create(self, cursor, uid, vals, context=None)
    We override create in order to have customer invoices generated by the comercial flow as on change partner is not systemtically call
  • onchange_partner_bank(self, cursor, user, ids, partner_bank_id)
    update the reference invoice_type depending of the partner bank
  • onchange_partner_id(self, cursor, uid, ids, invoice_type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False)
    Function that is call when the partner of the invoice is changed it will retrieve and set the good bank partner bank

New fields (0)

No new fields.

Public methods (2)
  • name_get(self, cursor, uid, ids, context=None)
  • name_search(self, cursor, uid, name, args=None, operator='ilike', context=None, limit=80)

New fields (0)

No new fields.

Public methods (1)
  • get_account_number(self, cursor, uid, bid, context=None)