From ec4e0c4b3dbd63deac945984b42d7f0ef6df2a74 Mon Sep 17 00:00:00 2001 From: "ced@localhost" Date: Wed, 14 May 2008 18:04:31 +0200 Subject: [PATCH] Initial commit with class 0 --- __init__.py | 25 +++ __tryton__.py | 15 ++ account_be.xml | 402 +++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 53 +++++++ 4 files changed, 495 insertions(+) create mode 100644 __init__.py create mode 100644 __tryton__.py create mode 100644 account_be.xml create mode 100644 setup.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000000..e0a277370e --- /dev/null +++ b/__init__.py @@ -0,0 +1,25 @@ +# Copyright (c) 2008 Cedric Krier. +# +# 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 contact 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. +# +############################################################################## + diff --git a/__tryton__.py b/__tryton__.py new file mode 100644 index 0000000000..8fb3c202a5 --- /dev/null +++ b/__tryton__.py @@ -0,0 +1,15 @@ +{ + 'name': 'Account Belgium', + 'version': '0.1', + 'author': 'B2CK', + 'email': 'info@b2ck.com', + 'website': 'http://www.tryton.org/', + 'category': 'Generic Modules', + 'description': 'Financial and Accounting Module', + 'depends': [ + 'account', + ], + 'xml': [ + 'account_be.xml', + ], +} diff --git a/account_be.xml b/account_be.xml new file mode 100644 index 0000000000..8871018778 --- /dev/null +++ b/account_be.xml @@ -0,0 +1,402 @@ + + + + + Belgium Chart + none + + + + + Droits & engagements hors bilan + 0 + none + + + + + + Garanties constituees par des tiers pour compte de l'entreprise + 00 + none + + + + + + Créanciers, bénéficiaires de garanties de tiers + 000 + balance + + + + + + Tiers constituants de garanties pour compte de l'entreprise + 001 + balance + + + + + + Garanties constituees pour compte de tiers + 01 + balance + + + + + + Débiteurs pour engagements sur effets + 010 + balance + + + + + + Créanciers d'engagements sur effets + 011 + none + + + + + + Effets cédés par l'entreprise sous endos + 0110 + balance + + + + + + Autres engagements sur effets en circulation + 0111 + balance + + + + + + Débiteurs pour autres garanties personnelles + 012 + balance + + + + + + Créanciers d'autres garanties personnelles + 013 + balance + + + + + + Garanties reelles constituees sur avoirs propres + 02 + none + + + + + + Créanciers de l'entreprise, bénéficiaires de garanties réelles + 020 + balance + + + + + + Garanties réelles constituées pour compte propre + 021 + balance + + + + + + Créanciers de tiers, bénéficiaires de garanties réelles + 022 + balance + + + + + + Garanties réelles constituées pour compte de tiers + 023 + balance + + + + + + Garanties reçues + 03 + none + + + + + + Dépôts statutaires + 030 + balance + + + + + + Déposants statutaires + 031 + balance + + + + + + Garanties reçues + 032 + balance + + + + + + Constituants de garanties + 033 + balance + + + + + + Biens et valeurs detenus par des tiers en leur nom mais aux risques et profits de l'entreprise + 04 + none + + + + + + Tiers, détenteurs en leur nom mais aux risques et profits de l'entreprise de biens et de valeurs + 040 + balance + + + + + + Biens et valeurs détenus par des tiers en leur nom mais aux risques et profits de l'entreprise + 041 + balance + + + + + + Engagements d'acquisition et de cession d'immobilisation + 05 + none + + + + + + Engagements d'acquisition + 050 + balance + + + + + + Créanciers d'engagements d'acquisition + 051 + balance + + + + + + Débiteurs pour engagements de cession + 052 + balance + + + + + + Engagements de cession + 053 + balance + + + + + + Marches à terme + 06 + none + + + + + + Marchandises achetées à terme - à recevoir + 060 + balance + + + + + + Créanciers pour marchandises achetées à terme + 061 + balance + + + + + + Débiteurs pour marchandises vendues à terme - à livrer + 062 + balance + + + + + + Marchandises vendues à terme - à livrer + 063 + balance + + + + + + Devises achetées à terme - à recevoir + 064 + balance + + + + + + Créanciers pour devises achetées à terme + 065 + balance + + + + + + Débiteurs pour devises vendues à terme + 067 + balance + + + + + + Devises vendues à terme - à livrer + 068 + balance + + + + + + Biens et valeurs de tiers detenus par l'entreprise + 07 + none + + + + + + Droits d'usage à long terme + 070 + balance + + + + + + Sur terrains et constructions + 0700 + balance + + + + + + Sur installations, machines et outillage + 0701 + balance + + + + + + Sur mobilier et matériel roulant + 0702 + balance + + + + + + Créanciers de loyers et redevances + 071 + balance + + + + + + Biens et valeurs de tiers reçus en dépôt, en consignation, ou à façon + 072 + balance + + + + + + Commettants et déposants de biens et valeurs + 073 + balance + + + + + + Biens et valeurs détenus pour compte ou aux risques et profits de tiers + 074 + balance + + + + + + Créanciers de biens et valeurs détenus pour compte de tiers ou à leurs risques et profits + 075 + balance + + + + + + Droits et engagements divers + 09 + balance + + + + + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000..dc0fc16c30 --- /dev/null +++ b/setup.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python + +from distutils.core import setup +from distutils.command import sdist + + +class mysdist(sdist.sdist): + + def add_defaults(self): + sdist.sdist.add_defaults(self) + if self.distribution.has_pure_modules(): + build_py = self.get_finalized_command('build_py') + data = [] + for package in build_py.packages: + src_dir = build_py.get_package_dir(package) + data.extend(build_py.find_data_files(package, src_dir)) + self.filelist.extend(data) + +info = eval(file('__tryton__.py').read()) + +requires = ['trytond'] + ['trytond-' + x for x in info.get('depends', [])] + +setup(name='trytond-' + info['name'].lower(), + version=info.get('version', '0'), + description=info.get('description', ''), + author=info.get('author', ''), + author_email=info.get('email', ''), + url=info.get('website', ''), + package_dir={'trytond.modules.' + info['name'].lower(): '.'}, + packages=[ + 'trytond.modules.' + info['name'].lower(), + ], + package_data={ + 'trytond.modules.' + info['name'].lower(): info.get('xml', []), + }, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Plugins', + 'Intended Audience :: Developers', + 'Intended Audience :: Financial and Insurance Industry', + 'Intended Audience :: Legal Industry', + 'Natural Language :: Frensh', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Office/Business', + 'Topic :: Office/Business :: Financial :: Accounting', + ], + license=info.get('license', 'GPL-2'), + #requires=requires, + cmdclass={ + 'sdist': mysdist, + }, +)