Skip to content

Commit

Permalink
Merge 56c94c7 into 1e18c26
Browse files Browse the repository at this point in the history
  • Loading branch information
antespi committed Apr 8, 2015
2 parents 1e18c26 + 56c94c7 commit 713efb9
Show file tree
Hide file tree
Showing 12 changed files with 457 additions and 0 deletions.
69 changes: 69 additions & 0 deletions membership_withdrawl/README.rst
@@ -0,0 +1,69 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License

Membership withdrawal
=====================

This module was written to extend the functionality of membership to support
tracking of members signup and withdrawal. Also, allows to select a withdrawal
reason from a configurated list of reasons


Installation
============

To install this module, go to Settings > Local Modules and install it as usual.


Configuration
=============

Go to Association > Configuration > Member withdrawal reason, to configure
all available reasons you want


Usage
=====

When a member signs up because changes its Membership State to 'Free Member'
or 'Paid Member' and its Signup date is empty, then is automatically filled
with today date.

User has to set withdrawal date and select a withdrawal reason manually. These
fields are not related with Membership Lines or Membership State


Known issues / Roadmap
======================

None


Credits
=======

Icon
----

* Original source : https://thenounproject.com/term/add-group/79375 by Mundo (https://thenounproject.com/DMundo), 2014
* Modified by Antonio Espinosa using GIMP image editor, 2015

Contributors
------------

* Antonio Espinosa <antonioea@antiun.com>

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://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.
25 changes: 25 additions & 0 deletions membership_withdrawl/__init__.py
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright :
# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com)
# Antonio Espinosa <antonioea@antiun.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import models
40 changes: 40 additions & 0 deletions membership_withdrawl/__openerp__.py
@@ -0,0 +1,40 @@
# -*- encoding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Odoo Source Management Solution
# Copyright (c) 2015 Antiun Ingeniería S.L. (http://www.antiun.com)
# Antonio Espinosa <antonioea@antiun.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

{
'name': "Membership withdrawal",
'category': 'Association',
'version': '1.0',
'depends': [
'membership',
],
'data': [
'views/res_partner_view.xml',
'views/membership_withdrawal_reason_view.xml',
'security/ir.model.access.csv',
],
'author': 'Antiun Ingeniería S.L.',
'website': 'http://www.antiun.com',
'license': 'AGPL-3',
'installable': True,
}
83 changes: 83 additions & 0 deletions membership_withdrawl/i18n/es.po
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_withdrawl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-04-08 12:20+0000\n"
"PO-Revision-Date: 2015-04-08 12:20+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,create_uid:0
msgid "Created by"
msgstr "Creado por"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,create_date:0
msgid "Created on"
msgstr "Creado en"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,id:0
msgid "ID"
msgstr "ID"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,write_date:0
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: membership_withdrawl
#: model:ir.actions.act_window,name:membership_withdrawl.membership_withdrawal_reason_action
#: model:ir.ui.menu,name:membership_withdrawl.membership_withdrawal_reason_menu
msgid "Membership Withdrawal Reasons"
msgstr "Motivos de baja de miembros"

#. module: membership_withdrawl
#: model:ir.model,name:membership_withdrawl.model_membership_withdrawal_reason
msgid "Membership withdrawal reason"
msgstr "Motivo de baja de un miembro"

#. module: membership_withdrawl
#: view:membership.withdrawal_reason:membership_withdrawl.membership_withdrawal_reason_tree
msgid "Membership withdrawal reasons"
msgstr "Motivos de baja de miembros"

#. module: membership_withdrawl
#: model:ir.model,name:membership_withdrawl.model_res_partner
msgid "Partner"
msgstr "Empresa"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,name:0
msgid "Reason"
msgstr "Motivo"

#. module: membership_withdrawl
#: field:res.partner,membership_signup:0
msgid "Signup date"
msgstr "Fecha de alta"

#. module: membership_withdrawl
#: field:res.partner,membership_withdrawal:0
msgid "Withdrawal date"
msgstr "Fecha de baja"

#. module: membership_withdrawl
#: field:res.partner,membership_withdrawal_reason:0
msgid "Withdrawal reason"
msgstr "Motivo de la baja"

83 changes: 83 additions & 0 deletions membership_withdrawl/i18n/membership_withdrawl.pot
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_withdrawl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-04-08 12:20+0000\n"
"PO-Revision-Date: 2015-04-08 12:20+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,create_uid:0
msgid "Created by"
msgstr ""

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,create_date:0
msgid "Created on"
msgstr ""

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,id:0
msgid "ID"
msgstr ""

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,write_uid:0
msgid "Last Updated by"
msgstr ""

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,write_date:0
msgid "Last Updated on"
msgstr ""

#. module: membership_withdrawl
#: model:ir.actions.act_window,name:membership_withdrawl.membership_withdrawal_reason_action
#: model:ir.ui.menu,name:membership_withdrawl.membership_withdrawal_reason_menu
msgid "Membership Withdrawal Reasons"
msgstr ""

#. module: membership_withdrawl
#: model:ir.model,name:membership_withdrawl.model_membership_withdrawal_reason
msgid "Membership withdrawal reason"
msgstr ""

#. module: membership_withdrawl
#: view:membership.withdrawal_reason:membership_withdrawl.membership_withdrawal_reason_tree
msgid "Membership withdrawal reasons"
msgstr ""

#. module: membership_withdrawl
#: model:ir.model,name:membership_withdrawl.model_res_partner
msgid "Partner"
msgstr ""

#. module: membership_withdrawl
#: field:membership.withdrawal_reason,name:0
msgid "Reason"
msgstr ""

#. module: membership_withdrawl
#: field:res.partner,membership_signup:0
msgid "Signup date"
msgstr ""

#. module: membership_withdrawl
#: field:res.partner,membership_withdrawal:0
msgid "Withdrawal date"
msgstr ""

#. module: membership_withdrawl
#: field:res.partner,membership_withdrawal_reason:0
msgid "Withdrawal reason"
msgstr ""

26 changes: 26 additions & 0 deletions membership_withdrawl/models/__init__.py
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright :
# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com)
# Antonio Espinosa <antonioea@antiun.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import membership_withdrawal_reason
from . import res_partner
32 changes: 32 additions & 0 deletions membership_withdrawl/models/membership_withdrawal_reason.py
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright :
# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com)
# Antonio Espinosa <antonioea@antiun.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

from openerp import models, fields


class MembershipWithdrawalReason(models.Model):
_name = 'membership.withdrawal_reason'
_description = 'Membership withdrawal reason'

name = fields.Char(string="Reason", translate=True, required=True)

0 comments on commit 713efb9

Please sign in to comment.