From 9f8a426388b7c4230467cf4cc454bcff0b4b976e Mon Sep 17 00:00:00 2001 From: "nicolas.bessi@camptocamp.com" <> Date: Fri, 13 Feb 2009 16:53:46 +0100 Subject: [PATCH] adding swiss localisation modules bzr revid: nicolas.bessi@camptocamp.com-20090213155346-dm090u6oqpvb3ujw --- addons/l10n_ch/__init__.py | 43 + addons/l10n_ch/__terp__.py | 108 + addons/l10n_ch/account_invoice.xml | 45 + addons/l10n_ch/account_journal_view.xml | 44 + addons/l10n_ch/account_move_line.py | 70 + addons/l10n_ch/bank.py | 45 + addons/l10n_ch/bank_ch.xml | 42507 +++++++++++ addons/l10n_ch/bank_view.xml | 28 + addons/l10n_ch/bvr_report.xml | 26 + addons/l10n_ch/bvr_view.xml | 16 + addons/l10n_ch/bvr_wizard.xml | 27 + addons/l10n_ch/company.py | 49 + addons/l10n_ch/company_view.xml | 17 + addons/l10n_ch/demo/dta_demo.xml | 66 + addons/l10n_ch/demo/vaudtax_data_demo.xml | 88 + addons/l10n_ch/dta.py | 95 + addons/l10n_ch/dta_data.xml | 152 + addons/l10n_ch/dta_view.xml | 39 + addons/l10n_ch/dta_wizard.xml | 13 + addons/l10n_ch/invoice.py | 210 + addons/l10n_ch/partner.py | 98 + addons/l10n_ch/payment.py | 43 + addons/l10n_ch/readme.txt | 29 + addons/l10n_ch/report/__init__.py | 33 + addons/l10n_ch/report/bvr.py | 102 + addons/l10n_ch/report/bvr.rml | 164 + addons/l10n_ch/report/invoice.rml | 378 + addons/l10n_ch/report/normalized_oo2rml.xsl | 610 + addons/l10n_ch/report/ocrbb.ttf | Bin 0 -> 40312 bytes addons/l10n_ch/report/tiny_sxw2rml.py | 341 + addons/l10n_ch/security/ir.model.access.csv | 3 + addons/l10n_ch/vaudtax_data.xml | 104 + addons/l10n_ch/wizard/__init__.py | 36 + addons/l10n_ch/wizard/bvr_import.py | 250 + addons/l10n_ch/wizard/dta_wizard.py | 611 + addons/l10n_ch/wizard/journal_config.py | 165 + addons/l10n_ch/wizard/wizard_bvr.py | 82 + addons/l10n_ch/zip_code_default.xml | 58513 ++++++++++++++++ addons/l10n_ch_chart_c2c_pcg/__init__.py | 25 + addons/l10n_ch_chart_c2c_pcg/__terp__.py | 52 + addons/l10n_ch_chart_c2c_pcg/account.xml | 19018 +++++ .../security/ir.model.access.csv | 3 + .../tax_template_view.xml | 50 + addons/l10n_ch_chart_c2c_pcg/vat.xml | 533 + addons/l10n_ch_chart_c2c_pcg/wizard.xml | 12 + .../l10n_ch_chart_c2c_pcg/wizard/__init__.py | 7 + addons/l10n_ch_chart_c2c_pcg/wizard/config.py | 143 + 47 files changed, 125093 insertions(+) create mode 100755 addons/l10n_ch/__init__.py create mode 100755 addons/l10n_ch/__terp__.py create mode 100755 addons/l10n_ch/account_invoice.xml create mode 100755 addons/l10n_ch/account_journal_view.xml create mode 100755 addons/l10n_ch/account_move_line.py create mode 100755 addons/l10n_ch/bank.py create mode 100755 addons/l10n_ch/bank_ch.xml create mode 100755 addons/l10n_ch/bank_view.xml create mode 100755 addons/l10n_ch/bvr_report.xml create mode 100755 addons/l10n_ch/bvr_view.xml create mode 100755 addons/l10n_ch/bvr_wizard.xml create mode 100755 addons/l10n_ch/company.py create mode 100755 addons/l10n_ch/company_view.xml create mode 100755 addons/l10n_ch/demo/dta_demo.xml create mode 100755 addons/l10n_ch/demo/vaudtax_data_demo.xml create mode 100755 addons/l10n_ch/dta.py create mode 100755 addons/l10n_ch/dta_data.xml create mode 100755 addons/l10n_ch/dta_view.xml create mode 100755 addons/l10n_ch/dta_wizard.xml create mode 100755 addons/l10n_ch/invoice.py create mode 100755 addons/l10n_ch/partner.py create mode 100755 addons/l10n_ch/payment.py create mode 100755 addons/l10n_ch/readme.txt create mode 100755 addons/l10n_ch/report/__init__.py create mode 100755 addons/l10n_ch/report/bvr.py create mode 100755 addons/l10n_ch/report/bvr.rml create mode 100755 addons/l10n_ch/report/invoice.rml create mode 100755 addons/l10n_ch/report/normalized_oo2rml.xsl create mode 100755 addons/l10n_ch/report/ocrbb.ttf create mode 100755 addons/l10n_ch/report/tiny_sxw2rml.py create mode 100644 addons/l10n_ch/security/ir.model.access.csv create mode 100755 addons/l10n_ch/vaudtax_data.xml create mode 100755 addons/l10n_ch/wizard/__init__.py create mode 100755 addons/l10n_ch/wizard/bvr_import.py create mode 100755 addons/l10n_ch/wizard/dta_wizard.py create mode 100755 addons/l10n_ch/wizard/journal_config.py create mode 100755 addons/l10n_ch/wizard/wizard_bvr.py create mode 100755 addons/l10n_ch/zip_code_default.xml create mode 100644 addons/l10n_ch_chart_c2c_pcg/__init__.py create mode 100644 addons/l10n_ch_chart_c2c_pcg/__terp__.py create mode 100644 addons/l10n_ch_chart_c2c_pcg/account.xml create mode 100644 addons/l10n_ch_chart_c2c_pcg/security/ir.model.access.csv create mode 100755 addons/l10n_ch_chart_c2c_pcg/tax_template_view.xml create mode 100755 addons/l10n_ch_chart_c2c_pcg/vat.xml create mode 100755 addons/l10n_ch_chart_c2c_pcg/wizard.xml create mode 100755 addons/l10n_ch_chart_c2c_pcg/wizard/__init__.py create mode 100755 addons/l10n_ch_chart_c2c_pcg/wizard/config.py diff --git a/addons/l10n_ch/__init__.py b/addons/l10n_ch/__init__.py new file mode 100755 index 00000000000..e37210f2e84 --- /dev/null +++ b/addons/l10n_ch/__init__.py @@ -0,0 +1,43 @@ +# -*- encoding: utf-8 -*- +# +# __init__.py +# l10n_ch +# +# Created by Nicolas Bessi based on Credric Krier contribution +# +# Copyright (c) 2009 CamptoCamp. All rights reserved. +############################################################################## +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## + + +import invoice +import company +import partner +import company +import wizard +import payment +import report +import bank +import account_move_line diff --git a/addons/l10n_ch/__terp__.py b/addons/l10n_ch/__terp__.py new file mode 100755 index 00000000000..ef41397f839 --- /dev/null +++ b/addons/l10n_ch/__terp__.py @@ -0,0 +1,108 @@ +# -*- encoding: utf-8 -*- +# +# __terp__.py +# l10n_ch +# +# Created by Nicolas Bessi based on Credric Krier contribution +# +# Copyright (c) 2009 CamptoCamp. All rights reserved. +############################################################################## +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## +{ + "name" : "Switzerland localisation corrected by Camptocamp", + "description" : """ +Swiss localisation : + - DTA generation for a lot of paiment types + - BVR management (number generation, report, etc..) + - Import account move from the bank file (like v11 etc..) + - Simplify the way you handle the bank statement for reconciliation + +You can also add with this module one of the following account plan: + - l10n_ch_c2c_pcg + + + +------------------------------------------------------------------------ + +Module incluant la localisation Suisse de TinyERP revu et corrigé par Camptocamp. Cette nouvelle version +comprend la gestion et l'émissionde BVR, le paiement électronique via DTA (pour les banques, le système postal est en développement) +et l'import du relevé de compte depuis la banque de manière automatisée. +De plus, nous avons intégré la définition de toutes les banques Suisses(adresse, swift et clearing). + +Par ailleurs, conjointement à ce module, nous proposons 1 plan comptables issus de l'USAM : + + + - l10n_ch_c2c_pcg + +-------------------------------------------------------------------------- +TODO : +- Implement bvr import partial reconciliation +- Replace wizard by osv_memory when possible +- Add mising HELP +- Finish code comment +- Improve demo data + + +""", + "version" : "5.0", + "author" : "Camptocamp SA", + "category" : "Localisation/Europe", + "website": "http://www.camptocamp.com", + + "depends" : [ + "base", + "account", + "base_vat", + "base_iban", + "account_payment", + "account_tax_include", + ], + "init_xml" : [ + "dta_data.xml", + "vaudtax_data.xml", + #these data will soon be part of an other modules but if you want + #them now uncomment the two lines + #"zip_code_default.xml", + #"bank_ch.xml", + ], + "demo_xml" : [ + "demo/vaudtax_data_demo.xml", + ], + "update_xml" : [ + "dta_view.xml", + "dta_wizard.xml", + "account_vat.xml", + "bvr_report.xml", + "bvr_wizard.xml", + "bvr_view.xml", + "company_view.xml", + "account_invoice.xml", + "bank_view.xml", + "account_journal_view.xml", + "security/ir.model.access.csv", + ], + "active": False, + "installable": True, +} diff --git a/addons/l10n_ch/account_invoice.xml b/addons/l10n_ch/account_invoice.xml new file mode 100755 index 00000000000..ddce598627c --- /dev/null +++ b/addons/l10n_ch/account_invoice.xml @@ -0,0 +1,45 @@ + + + + + account.invoice.supplier.form.inherit + account.invoice + form + + + + + + + + + + account.invoice.supplier.form.inherit + account.invoice + form + + + + + + + + + + account.invoice.form.inherit + account.invoice + form + + + + + + + + + \ No newline at end of file diff --git a/addons/l10n_ch/account_journal_view.xml b/addons/l10n_ch/account_journal_view.xml new file mode 100755 index 00000000000..cfe3db3573d --- /dev/null +++ b/addons/l10n_ch/account_journal_view.xml @@ -0,0 +1,44 @@ + + + + account.journal.todo.form + account.journal.todo + form + +
+ + + + + + + +