forked from yvaucher/l10n-switzerland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbank.py
60 lines (53 loc) · 2.49 KB
/
bank.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi, Olivier Jossen, Guewen Baconnier
# Copyright 2011-2014 Camptocamp SA
# Copyright 2014 brain-tec AG
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields
class ResBank(models.Model):
""" Inherit res.bank class in order to add swiss specific fields
Fields from the original file downloaded from here:
http://www.six-interbank-clearing.com/de/home/bank-master-data/download-bc-bank-master.html
============= ================
Field in file Column
------------- ----------------
Gruppe bank_group
Filial-ID bank_branchid
Hauptsitz bank_headquarter
Vorwahl bank_areacode
Postkonto bank_postaccount
============= ================
.. note:: Postkonto: ccp does not allow to enter entries like
``*30-38151-2`` because of the ``*`` but this comes from the
xls to import
"""
_inherit = 'res.bank'
bank_group = fields.Char(string='Group', size=2)
bank_branchid = fields.Char(string='Branch-ID', size=5)
bank_clearing_new = fields.Char(string='BCNr new', size=5)
bank_sicnr = fields.Char(string='SIC-Nr', size=6)
bank_headquarter = fields.Char(string='Headquarter', size=5)
bank_bcart = fields.Char(string='BC-Art', size=1)
bank_valid_from = fields.Date(string='Valid from')
bank_sic = fields.Char(string='SIC', size=1)
bank_eurosic = fields.Char(string='euroSIC', size=1)
bank_lang = fields.Char(string='Language', size=1)
bank_postaladdress = fields.Char(string='Postal address', size=35)
bank_areacode = fields.Char(string='Area code', size=5)
bank_postaccount = fields.Char(string='Post account', size=35)