Skip to content

Commit

Permalink
Merge PR #171 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Aug 30, 2024
2 parents 2d43a92 + 4d745bf commit a9be18a
Show file tree
Hide file tree
Showing 56 changed files with 5,649 additions and 0 deletions.
113 changes: 113 additions & 0 deletions membership_variable_period/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
===============================
Variable period for memberships
===============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:190d2bc541507eba23032a6748d377587100437992dd9cdea8ff6d890ac33f1e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/17.0/membership_variable_period
: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-17-0/vertical-association-17-0-membership_variable_period
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&target_branch=17.0
:alt: Try me on Runboat

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

Current membership module allows to set products that define a fixed
period for a membership. This is good when the quotas are defined
periodically, and when you become a member, you are until the end of
that quota cycle.

But a lot of times, membership quotas express an amount of time that you
gain the membership. For example, one year since the subscription.

This module allows to make it in Odoo, using current membership
features, and adapting them for this purpose. As now the quota is not
attached to a fixed period, you can also invoice more than one quantity
for being a member for the corresponding number of periods.

Finally, a cron has been included that triggers the recalculation of the
membership state, allowing to have "old members", which doesn't work
well on standard.

**Table of contents**

.. contents::
:local:

Usage
=====

Define a member product, and select 'Variable periods' in the field
*Membership type*. You will be able to select them the period for the
membership in quantity and interval.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/vertical-association/issues/new?body=module:%20membership_variable_period%0Aversion:%2017.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
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Antonio Espinosa
- Rafael Blasco
- David Vidal

- `Onestein <https://onestein.eu>`__:

- Andrea Stirpe

- `Sygel <https://www.sygel.es>`__:

- Valentín Vinagre
- Roger Sans

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/17.0/membership_variable_period>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions membership_variable_period/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
from . import models
15 changes: 15 additions & 0 deletions membership_variable_period/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2015 Tecnativa - Pedro M. Baeza
# Copyright 2016 Tecnativa - Antonio Espinosa
# Copyright 2017 Tecnativa - David Vidal
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Variable period for memberships",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"category": "Association",
"author": "Tecnativa, Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-association",
"depends": ["membership_extension"],
"data": ["views/product_template_views.xml"],
"installable": True,
}
86 changes: 86 additions & 0 deletions membership_variable_period/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_variable_period
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-17 03:10+0000\n"
"PO-Revision-Date: 2017-08-17 03:10+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__fixed
msgid "Fixed dates"
msgstr ""

#. module: membership_variable_period
#: model_terms:ir.ui.view,arch_db:membership_variable_period.membership_products_form_period
msgid "Interval"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_unit
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_unit
msgid "Interval Unit"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_qty
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_qty
msgid "Interval quantity"
msgstr ""

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_type
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_type
msgid "Membership Type"
msgstr ""

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_product_template
msgid "Product"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__variable
msgid "Variable periods"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__days
msgid "days"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__months
msgid "months"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__weeks
msgid "weeks"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__years
msgid "years"
msgstr ""

#~ msgid "Invoice Line"
#~ msgstr "خط الفاتورة"
86 changes: 86 additions & 0 deletions membership_variable_period/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_variable_period
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-17 03:10+0000\n"
"PO-Revision-Date: 2017-08-17 03:10+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__fixed
msgid "Fixed dates"
msgstr ""

#. module: membership_variable_period
#: model_terms:ir.ui.view,arch_db:membership_variable_period.membership_products_form_period
msgid "Interval"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_unit
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_unit
msgid "Interval Unit"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_qty
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_qty
msgid "Interval quantity"
msgstr ""

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_type
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_type
msgid "Membership Type"
msgstr ""

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_product_template
msgid "Product"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__variable
msgid "Variable periods"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__days
msgid "days"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__months
msgid "months"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__weeks
msgid "weeks"
msgstr ""

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__years
msgid "years"
msgstr ""

#~ msgid "Invoice Line"
#~ msgstr "Stavka fakture"
89 changes: 89 additions & 0 deletions membership_variable_period/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-05 01:01+0000\n"
"PO-Revision-Date: 2024-07-29 18:58+0000\n"
"Last-Translator: Eugeni Chafer <[email protected]>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/"
"OCA-vertical-association-8-0/language/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__fixed
msgid "Fixed dates"
msgstr "Dates fixes"

#. module: membership_variable_period
#: model_terms:ir.ui.view,arch_db:membership_variable_period.membership_products_form_period
msgid "Interval"
msgstr "Període de temps"

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_unit
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_unit
msgid "Interval Unit"
msgstr "Unitat del període"

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_interval_qty
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_interval_qty
msgid "Interval quantity"
msgstr "Quantitat pel període"

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_account_move_line
msgid "Journal Item"
msgstr "Apunt comptable"

#. module: membership_variable_period
#: model:ir.model.fields,field_description:membership_variable_period.field_product_product__membership_type
#: model:ir.model.fields,field_description:membership_variable_period.field_product_template__membership_type
msgid "Membership Type"
msgstr "Tipus de filiació"

#. module: membership_variable_period
#: model:ir.model,name:membership_variable_period.model_product_template
msgid "Product"
msgstr "Producte"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_type__variable
msgid "Variable periods"
msgstr "Períodes variables"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__days
msgid "days"
msgstr "dies"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__months
msgid "months"
msgstr "mesos"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__weeks
msgid "weeks"
msgstr "setmanes"

#. module: membership_variable_period
#: model:ir.model.fields.selection,name:membership_variable_period.selection__product_template__membership_interval_unit__years
msgid "years"
msgstr "anys"

#~ msgid "Invoice Line"
#~ msgstr "Línia factura"

#~ msgid "Product Template"
#~ msgstr "Plantilla del producte"
Loading

0 comments on commit a9be18a

Please sign in to comment.