From 7a1e47516301c6d239a4112928ea67dae6395307 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Wed, 13 Jul 2016 18:55:55 +0200 Subject: [PATCH] [IMP]Pass global dependencies from GOLEM Members to GOLEM Base --- golem_activity/__openerp__.py | 2 +- golem_base/__init__.py | 16 ++++++++++++++++ golem_base/__openerp__.py | 34 ++++++++++++++++++++++++++++++++++ golem_member/__openerp__.py | 10 +--------- golem_season/__openerp__.py | 2 +- 5 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 golem_base/__init__.py create mode 100644 golem_base/__openerp__.py diff --git a/golem_activity/__openerp__.py b/golem_activity/__openerp__.py index 722ec4e..cf8dcf8 100644 --- a/golem_activity/__openerp__.py +++ b/golem_activity/__openerp__.py @@ -25,6 +25,6 @@ 'license': 'AGPL-3', 'application': True, 'installable': True, - 'depends': ['product', 'mail'], + 'depends': ['golem_base', 'product'], 'data': ['data/golem_activity_data.xml', 'views/golem_activity_view.xml'] } diff --git a/golem_base/__init__.py b/golem_base/__init__.py new file mode 100644 index 0000000..643d893 --- /dev/null +++ b/golem_base/__init__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +# Copyright 2016 Fabien Bourgeois +# +# 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 . diff --git a/golem_base/__openerp__.py b/golem_base/__openerp__.py new file mode 100644 index 0000000..2d3a5aa --- /dev/null +++ b/golem_base/__openerp__.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- + +# Copyright 2016 Fabien Bourgeois +# +# 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 . + +{ + 'name': 'GOLEM base module for global dependencies', + 'summary': 'GOLEM base installs base and shared dependencies for GOLEM', + 'version': '0.1', + 'category': 'Non-profit management', + 'author': 'Fabien Bourgeois', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'depends': ['membership', 'contacts', 'mail', 'account_voucher', + 'partner_firstname', 'partner_contact_birthdate', + 'partner_contact_gender', 'partner_contact_nationality', + 'l10n_fr_state', 'l10n_fr_department', 'l10n_fr_tax_sale_ttc', + 'l10n_fr_siret', + 'web_widget_phone_check_fr', 'web_widget_email_check', + 'web_widget_url_check'] +} diff --git a/golem_member/__openerp__.py b/golem_member/__openerp__.py index 095f924..d09a0e4 100644 --- a/golem_member/__openerp__.py +++ b/golem_member/__openerp__.py @@ -25,15 +25,7 @@ 'license': 'AGPL-3', 'application': True, 'installable': True, - 'depends': ['contacts', - 'partner_firstname', 'partner_contact_birthdate', - 'partner_contact_gender', 'partner_contact_nationality', - 'membership', 'account_voucher', 'mail', - 'l10n_fr_state', 'l10n_fr_department', 'l10n_fr_tax_sale_ttc', - 'l10n_fr_siret', - 'web_widget_phone_check_fr', 'web_widget_email_check', - 'web_widget_url_check', - 'golem_activity', 'golem_season'], + 'depends': ['golem_base', 'golem_activity', 'golem_season'], 'data': ['views/golem_member_view.xml', 'views/members_menu.xml', 'views/res_partner_view.xml', 'views/number_config.xml', 'data/number_config.xml'] diff --git a/golem_season/__openerp__.py b/golem_season/__openerp__.py index 14c2f50..19c868e 100644 --- a/golem_season/__openerp__.py +++ b/golem_season/__openerp__.py @@ -27,6 +27,6 @@ 'license': 'AGPL-3', 'application': False, 'installable': True, - 'depends': ['membership'], + 'depends': ['golem_base'], 'data': ['views/golem_season_view.xml'] }