l10n-switzerland-flectra/l10n_ch_payment_slip/models/bank.py
Raphael Ritter 14a109dc87 [ADD] l10n_ch_payment_slip
[ADD] l10n_ch_zip
[ADD] l10n_ch_bank_statement_import_postfinance
2021-07-16 16:21:21 +02:00

19 lines
677 B
Python

# Copyright 2012-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import models, fields
class ResPartnerBank(models.Model):
"""
Inherit res.partner.bank class in order to add swiss specific fields
such as:
- ISR data
- ISR print options for company accounts
We leave it here in order
"""
_inherit = "res.partner.bank"
isr_adherent_num = fields.Boolean('Print Bank adherent number') #custom added fields
print_bank = fields.Boolean('Print Bank on ISR')
print_account = fields.Boolean('Print Account Number on ISR')
print_partner = fields.Boolean('Print Partner Address on ISR')