Commit 0c88170c authored by Robert Rottermann's avatar Robert Rottermann
Browse files

[MIG]akshay migrated to v13

parents
Pipeline #247 failed with stages
in 2 minutes and 18 seconds
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
===============
Swiss bank list
===============
This module will load all the Swiss banks with their name, address and
BIC code to ease the input of bank accounts.
It is not mandatory to use them in Odoo in Switzerland, but can improve
the user experience.
.. important:: The module contains the newest bank data (21.10.2014).
If you want to update all your banks, update them via the link
'Update Banks' in the section 'Bank & Cash' under
``Settings/Configuration/Invoicing``.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/125/11.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/
l10n-switzerland/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
=======
Contributors
------------
* Nicolas Bessi <nicolas.bessi@camptocamp.com>
* Olivier Jossen (brain-tec AG)
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.
# Copyright 2015 Yannick Vaucher (Camptocamp SA)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from .hooks import post_init
# Copyright 2011-2015 Camptocamp SA
# Copyright 2014 Olivier Jossen brain-tec AG
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Switzerland - Bank list',
'version': '13.0.1.0.0',
'author': "Camptocamp, brain-tec AG,Odoo Community Association (OCA)",
'category': 'Localisation',
'website': 'http://www.camptocamp.com',
'license': 'AGPL-3',
'summary': 'Banks names, addresses and BIC codes',
'depends': ['l10n_ch_base_bank',
],
# We use csv file as xml is too slow
# unfortunately it doesn't work with noupdate thus we use a post_init hook
# 'init': ['data/res.bank.csv'],
'post_init_hook': 'post_init',
'auto_install': False,
'installable': True,
}
This source diff could not be displayed because it is too large. You can view the blob instead.
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo.tools import convert_file
def import_csv_data(cr, registry):
"""Import CSV data as it is faster than xml and because we can't use
noupdate anymore with csv"""
filenames = ['data/res.bank.csv']
for filename in filenames:
convert_file(
cr, 'l10n_ch_bank',
filename, None, mode='init', noupdate=True,
kind='init', report=None,
)
def post_init(cr, registry):
import_csv_data(cr, registry)
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_ch_bank
#
# Translators:
# TT <toni.tanner@leegroup.ch>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-04 03:30+0000\n"
"PO-Revision-Date: 2017-02-04 03:30+0000\n"
"Last-Translator: TT <toni.tanner@leegroup.ch>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_areacode
msgid "Area code"
msgstr "Vorwahl"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_bcart
msgid "BC-Art"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_clearing_new
msgid "BCNr new"
msgstr "Neue Bankleitzahl"
#. module: l10n_ch_bank
#: model:ir.model,name:l10n_ch_bank.model_res_bank
msgid "Bank"
msgstr "Bank"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_branchid
msgid "Branch-ID"
msgstr "Zweig-ID"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_group
msgid "Group"
msgstr "Gruppe"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_headquarter
msgid "Headquarter"
msgstr "Hauptquartier"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_lang
msgid "Language"
msgstr "Sprache"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaccount
msgid "Post account"
msgstr "Postkonto"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaladdress
msgid "Postal address"
msgstr "Adresse"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sic
msgid "SIC"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sicnr
msgid "SIC-Nr"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_valid_from
msgid "Valid from"
msgstr "Gültiges Formular"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_eurosic
msgid "euroSIC"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_ch_bank
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# leemannd <denis.leemann@camptocamp.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-04 03:38+0000\n"
"PO-Revision-Date: 2017-01-04 03:38+0000\n"
"Last-Translator: leemannd <denis.leemann@camptocamp.com>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_areacode
msgid "Area code"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_bcart
msgid "BC-Art"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_clearing_new
msgid "BCNr new"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model,name:l10n_ch_bank.model_res_bank
msgid "Bank"
msgstr "Banque"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_branchid
msgid "Branch-ID"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_group
msgid "Group"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_headquarter
msgid "Headquarter"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_lang
msgid "Language"
msgstr "Langue"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaccount
msgid "Post account"
msgstr "Compte postal"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaladdress
msgid "Postal address"
msgstr "Adresse postale"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sic
msgid "SIC"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sicnr
msgid "SIC-Nr"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_valid_from
msgid "Valid from"
msgstr "Valide dès"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_eurosic
msgid "euroSIC"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_ch_bank
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Stefano <stefano.sforzi@agilebg.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-16 06:26+0000\n"
"PO-Revision-Date: 2017-12-16 06:26+0000\n"
"Last-Translator: Stefano <stefano.sforzi@agilebg.com>, 2018\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_areacode
msgid "Area code"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_bcart
msgid "BC-Art"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_clearing_new
msgid "BCNr new"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model,name:l10n_ch_bank.model_res_bank
msgid "Bank"
msgstr "Banca"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_branchid
msgid "Branch-ID"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_group
msgid "Group"
msgstr "Gruppo"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_headquarter
msgid "Headquarter"
msgstr ""
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_lang
msgid "Language"
msgstr "Lingua"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaccount
msgid "Post account"
msgstr "Conto postale"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_postaladdress
msgid "Postal address"
msgstr "Indirizzo postale"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sic
msgid "SIC"
msgstr "SIC"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_sicnr
msgid "SIC-Nr"
msgstr "SIC-Nr"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_valid_from
msgid "Valid from"
msgstr "Valido da"
#. module: l10n_ch_bank
#: model:ir.model.fields,field_description:l10n_ch_bank.field_res_bank_bank_eurosic
msgid "euroSIC"
msgstr "euroSIC"
from . import bank
# Copyright 2014 Olivier Jossen brain-tec AG
# Copyright 2014-2015 Guewen Baconnier (Camptocamp SA)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo 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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment