Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] membership_extension: Migration to 15.0 #128

Merged
merged 48 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
493d2a9
membership_extension (#21)
antespi Nov 25, 2016
bda6544
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
502efb7
membership_extension: Refunds cancel
pedrobaeza Feb 9, 2017
494ad56
[MIG] membership_extension: Migration to 10.0
chienandalu May 18, 2017
5971b58
[FIX+IMP] membership_extension: Tests + other + icon
pedrobaeza Jun 23, 2017
2559750
OCA Transbot updated translations from Transifex
oca-transbot Jun 24, 2017
1a6a334
[FIX] broken Membership Products menu
Aug 3, 2017
3cc8e78
[IMP] membership_extension: forbid partner delete
chienandalu Oct 23, 2017
6944b20
[FIX+IMP] membership_extension: method-super mismatch (#52) + adhered…
chienandalu Dec 14, 2017
402ef29
[10.0][fix] membership_extension: add security group to menu (#53)
Dec 22, 2017
78d7fdc
[MIG] membership_extension: Migration to 11.0
chienandalu Jan 2, 2018
83a6b63
OCA Transbot updated translations from Transifex
oca-transbot Jan 16, 2018
65d4be3
[IMP] membership_extension: Adapt to standard refund field
pedrobaeza Mar 29, 2018
6e9c495
[UPD] Update membership_extension.pot
oca-travis Jun 21, 2018
58e4616
Translated using Weblate (German)
benbrich Mar 8, 2019
cf690e1
[MIG] membership_extension: Migration to 12.0
amcor Mar 25, 2019
76f13f1
[UPD] Update membership_extension.pot
oca-travis May 10, 2019
9ec10ac
Update translation files
oca-transbot May 20, 2019
0b79fb8
[FIX] membership_extensions: member demo products
chienandalu May 29, 2019
8dbfe80
Translated using Weblate (German)
benbrich Jul 12, 2019
ab2f457
[UPD] README.rst
OCA-git-bot Jul 29, 2019
a24028a
Translated using Weblate (German)
benbrich Sep 13, 2019
196c9c3
[FIX] Create a new member_line after the cancel of a previous one
astirpe Nov 21, 2019
a242e02
membership_extension 12.0.1.0.2
OCA-git-bot Nov 21, 2019
eee5d60
[IMP] membership_extension: Membership Category multicompany compliant
astirpe Nov 21, 2019
b512e35
Pre-commit
astirpe Apr 15, 2020
fab5f9c
[13.0][MIG] membership_extension
astirpe Apr 15, 2020
aba0eb0
[UPD] Update membership_extension.pot
oca-travis Aug 12, 2020
1643f1a
[UPD] README.rst
OCA-git-bot Aug 12, 2020
df2cd40
Update translation files
oca-transbot Aug 16, 2020
6770a3c
[14.0][MIG] - membership_extension
sbejaoui Jun 29, 2021
87bd191
[UPD] Update membership_extension.pot
oca-travis Sep 24, 2021
98616e9
[UPD] README.rst
OCA-git-bot Sep 24, 2021
36a854d
Translated using Weblate (Italian)
primes2h Dec 11, 2021
260afcf
Translated using Weblate (Italian)
primes2h Dec 13, 2021
be78861
Translated using Weblate (Italian)
primes2h Dec 17, 2021
10a20d9
Translated using Weblate (Italian)
primes2h Jan 15, 2022
b5c4d83
[FIX] membership_extension: duplicated membership product menu entry
primes2h Jan 23, 2022
c83ac1c
[UPD] Update membership_extension.pot
oca-travis Jan 24, 2022
3cb3b4b
membership_extension 14.0.1.1.0
OCA-git-bot Jan 24, 2022
bd34e60
Update translation files
oca-transbot Jan 24, 2022
c50393f
Translated using Weblate (Italian)
primes2h Jan 24, 2022
c95e83b
[IMP] membership_extension: show/hide fields on membership lines
primes2h Jan 25, 2022
af43364
membership_extension 14.0.1.2.0
OCA-git-bot Jan 26, 2022
abc91c6
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
eab552a
Translated using Weblate (French)
abdawone May 30, 2022
943b73d
[IMP] module_extension: black, isort, prettier
farzeni Aug 24, 2022
5c801ec
[MIG] module_extension: Migration to 15.0
farzeni Aug 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions membership_extension/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
====================
Membership extension
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fvertical--association-lightgray.png?logo=github
:target: https://github.com/OCA/vertical-association/tree/14.0/membership_extension
:alt: OCA/vertical-association
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/vertical-association-14-0/vertical-association-14-0-membership_extension
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/208/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends Odoo's membership management with the following features:

* Membership category
* Membership lines editable
* Do not calculate membership state from invoice status
* Start date of last membership period
* Partner's with member lines can't be deleted.
* When a partner has an associated member there is the option to make member
start date independent from the associated member one so joining dates can be
tracked for those members.
* Adds a category for Membership management security group so a user with only
that permission can access to the membership menu.

**Table of contents**

.. contents::
:local:

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

Users can define membership categories in Association > Configuration > Membership Categories
Then go to membership products and set a category to each one.

Usage
=====

Membership categories allow to classify memberships by types, allowing a
partner to be member or not of the different categories. For example, if you
have several levels of partnership (Starter, Silver, Gold) and one product
for each one, then partners who buy Silver product will have Silver membership
category. Afterwords, you can filter Silver members.

Membership lines are created when a membership product is invoiced, like in
Odoo standard version. But now users can create a new membership line without
creating an invoice.

Also, users can edit membership line dates and state even if an invoice is
not related with it.

You will see a general membership status at partner level that specifies if
it's a member of any category or not, and also a detail status per
membership category.

To make member start date independent from the associated member one, check the
option *Adhered member* in the membership tab of the partner who is associating.
A start date will now be available to edit.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical-association/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/vertical-association/issues/new?body=module:%20membership_extension%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa
* Onestein

Contributors
~~~~~~~~~~~~

* Antonio Espinosa <[email protected]>
* Pedro M. Baeza <[email protected]>
* David Vidal <[email protected]>
* Rafael Blasco <[email protected]>
* Luis M. Ontalba <[email protected]>
* Alberto Martín Cortada <[email protected]>
* Andrea Stirpe <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/vertical-association <https://github.com/OCA/vertical-association/tree/14.0/membership_extension>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions membership_extension/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
32 changes: 32 additions & 0 deletions membership_extension/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2016 Antonio Espinosa <[email protected]>
# Copyright 2017 David Vidal <[email protected]>
# Copyright 2017 Luis M. Ontalba <[email protected]>
# Copyright 2017-2018 Pedro M. Baeza <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Membership extension",
"summary": "Improves user experience of membership addon",
"version": "15.0.1.0.0",
"category": "Membership",
"author": "Tecnativa, Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-association",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["membership"],
"data": [
"security/membership_security.xml",
"security/ir.model.access.csv",
"views/membership_category_view.xml",
"views/membership_views.xml",
"views/product_template_view.xml",
"views/res_partner_view.xml",
"data/membership_category_data.xml",
],
"demo": [
"demo/membership_category_demo.xml",
"demo/product_template_demo.xml",
"demo/membership_security_demo.xml",
],
}
8 changes: 8 additions & 0 deletions membership_extension/data/membership_category_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="membership_category_member" model="membership.membership_category">
<field name="name">Member</field>
</record>
</odoo>
11 changes: 11 additions & 0 deletions membership_extension/demo/membership_category_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<record id="membership_category_silver" model="membership.membership_category">
<field name="name">Silver</field>
</record>
<record id="membership_category_gold" model="membership.membership_category">
<field name="name">Gold</field>
</record>
</odoo>
9 changes: 9 additions & 0 deletions membership_extension/demo/membership_security_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="base.user_admin" model="res.users">
<field
eval="[(4, ref('membership_extension.group_membership_manager'))]"
name="groups_id"
/>
</record>
</odoo>
32 changes: 32 additions & 0 deletions membership_extension/demo/product_template_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<record id="membership_0_product_template" model="product.template">
<field
name="membership_category_id"
ref="membership_extension.membership_category_gold"
/>
<field name="name">Membership Gold</field>
<field name="membership" eval="True" />
<field name="type">service</field>
</record>
<record id="membership_1_product_template" model="product.template">
<field
name="membership_category_id"
ref="membership_extension.membership_category_silver"
/>
<field name="name">Membership Silver</field>
<field name="membership" eval="True" />
<field name="type">service</field>
</record>
<record id="membership_2_product_template" model="product.template">
<field
name="membership_category_id"
ref="membership_extension.membership_category_member"
/>
<field name="name">Membership Bronze</field>
<field name="membership" eval="True" />
<field name="type">service</field>
</record>
</odoo>
Loading