l10n-switzerland-flectra/l10n_ch_payment_slip/models/bank.py

19 lines
677 B
Python
Raw Normal View History

# 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')