From a7ff88109d80056c1d8f75280c94e0de3972c994 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Fri, 26 Jun 2020 16:10:10 +0200 Subject: [PATCH] [MODULE] ~start migration --- __init__.py | 29 ++---------- __manifest__.py | 30 +++++++++++++ __openerp__.py | 54 ----------------------- models/__init__.py | 5 +++ remembership.py => models/remembership.py | 23 +--------- {view => views}/membership.xml | 0 {view => views}/partner.xml | 0 7 files changed, 41 insertions(+), 100 deletions(-) create mode 100644 __manifest__.py delete mode 100644 __openerp__.py create mode 100644 models/__init__.py rename remembership.py => models/remembership.py (95%) rename {view => views}/membership.xml (100%) rename {view => views}/partner.xml (100%) diff --git a/__init__.py b/__init__.py index ed36709..a7d817b 100644 --- a/__init__.py +++ b/__init__.py @@ -1,27 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Remembership module for OpenERP, Membership module enhancement and bug fixes -# Copyright (C) 2012-2018 L'Heureux Cyclage () -# -# This file is a part of Remembership -# -# Remembership 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 3 of the License, or -# (at your option) any later version. -# -# Remembership 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, see . -# -############################################################################## +# Copyright 2012-2020 L'Heureux Cyclage +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -import remembership -import wizard - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +from . import models +from . import wizard diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..c4011c1 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Copyright 2012-2020 L'Heureux Cyclage +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'ReMembership', + 'version': '0.1', + 'category': 'Generic Modules/Association', + 'description': """ + This module overload official OpenERP membership module for adding some + functionnalities that could be useful: + - grouped membership; + - date to date membership; + - members identfication number; + - cron job to update membership status. + """, + 'author': 'L\'Heureux Cyclage - LHC', + 'website': 'http://www.heureux-cyclage.org', + 'depends': [ + 'membership', + ], + 'data': [ + 'security/ir.model.access.csv', + 'data/membership.xml', + 'views/partner.xml', + 'views/membership.xml', + 'wizard/remembership_invoice_view.xml', + ], + 'test': [], +} diff --git a/__openerp__.py b/__openerp__.py deleted file mode 100644 index e5fb7b7..0000000 --- a/__openerp__.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Remembership module for OpenERP, Membership module enhancement and bug fixes -# Copyright (C) 2012-2018 L'Heureux Cyclage () -# -# This file is a part of Remembership -# -# Remembership 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 3 of the License, or -# (at your option) any later version. -# -# Remembership 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, see . -# -############################################################################## - -{ - 'name': 'ReMembership', - 'version': '0.1', - 'category': 'Generic Modules/Association', - 'description': """ - This module overload official OpenERP membership module for adding some functionnalities that could be useful: - - grouped membership; - - date to date membership; - - members identfication number; - - cron job to update membership status. - """, - 'author': 'L\'Heureux Cyclage - LHC', - 'website': 'http://www.heureux-cyclage.org', - 'depends': [ - 'membership', - ], - 'init_xml': [], - 'data': [ - 'security/ir.model.access.csv', - 'data/membership.xml', - 'view/partner.xml', - 'view/membership.xml', - 'wizard/remembership_invoice_view.xml', - ], - 'update_xml': [], - 'demo_xml': [], - 'test': [], - 'installable': True, - 'active': False, -} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..532a18a --- /dev/null +++ b/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2012-2020 L'Heureux Cyclage +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import remembership diff --git a/remembership.py b/models/remembership.py similarity index 95% rename from remembership.py rename to models/remembership.py index 5560fbf..7bbc9bb 100644 --- a/remembership.py +++ b/models/remembership.py @@ -1,25 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Remembership module for OpenERP, Membership module enhancement and bug fixes -# Copyright (C) 2012-2018 L'Heureux Cyclage () -# -# This file is a part of Remembership -# -# Remembership 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 3 of the License, or -# (at your option) any later version. -# -# Remembership 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, see . -# -############################################################################## +# Copyright 2012-2020 L'Heureux Cyclage +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp.osv import fields, osv import time diff --git a/view/membership.xml b/views/membership.xml similarity index 100% rename from view/membership.xml rename to views/membership.xml diff --git a/view/partner.xml b/views/partner.xml similarity index 100% rename from view/partner.xml rename to views/partner.xml -- 2.20.1