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

[MIG] membership_prorrate_variable_period: Migrated to 10.0 #28

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 64 additions & 0 deletions membership_prorrate_variable_period/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
=================================================
Prorrate the membership fee with variable periods
=================================================

Helper module for making the prorrate correctly when you are dealing with
variable periods in your memberships, which functionality is provided by
the module *membership_variable_period*.


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

This module is auto-installed if you have *membership_variable_period* and
*membership_prorrate* modules installed.

Usage
=====

For leading with variable periods and prorrate, only weekly, monthly or yearly
periods are allowed. When you create an invoice with a membership product
with variable period, the theoretical period is calculated from the invoice
date (or today if empty) as the natural period of the selected unit that
includes that date. For example, if the invoice is on the 15th of January
and the unit is month, the theoretical period to invoice will be all the month
of January.

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

* Allow to handle periods of months that make the year divisible: 2 months
(two-monthly), 3 months (quartely), 4 months (four-monthly) or 6 months
(biannual).
* On weekly memberships, consider the duality sunday/monday start of the week.

Credits
=======

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

* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>

Icon
----

Original clipart from:

* http://pixabay.com/es/en-contacto-con-tarjeta-de-cr%C3%A9dito-97574/
* https://openclipart.org/detail/153745/barre-de-progression

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.
5 changes: 5 additions & 0 deletions membership_prorrate_variable_period/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
22 changes: 22 additions & 0 deletions membership_prorrate_variable_period/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
'name': 'Prorrate membership fee for variable periods',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'category': 'Association',
'author': 'Antiun Ingeniería S.L., '
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://www.tecnativa.com',
'depends': [
'membership_prorrate',
'membership_variable_period',
],
'data': [
],
"installable": True,
"auto_install": True,
}
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-31 10:03+0000\n"
"PO-Revision-Date: 2017-01-17 19:17+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Línia factura"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr ""

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Plantilla del producte"
36 changes: 36 additions & 0 deletions membership_prorrate_variable_period/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 04:01+0000\n"
"PO-Revision-Date: 2016-11-17 17:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Rechnungsposition"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr "Es ist nicht möglich tägliche Termine zu unterteilen."

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Produktvorlage"
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 04:01+0000\n"
"PO-Revision-Date: 2016-11-17 17:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Línea de factura"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr "No es posible prorratear periodos diarios"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/es_MX.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-03 06:19+0000\n"
"PO-Revision-Date: 2016-12-05 09:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/es_MX/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es_MX\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Línea de factura"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr ""

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Plantilla del producto"
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 04:01+0000\n"
"PO-Revision-Date: 2015-12-28 17:29+0000\n"
"Last-Translator: <>\n"
"Language-Team: Finnish (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr ""

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr ""

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Tuotteen malli"
36 changes: 36 additions & 0 deletions membership_prorrate_variable_period/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
# Fabien Bourgeois <fabien@yaltik.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 04:01+0000\n"
"PO-Revision-Date: 2016-11-17 17:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Ligne de facture"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr "Il est impossible de faire payer au prorata avec des périodes journalières."

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Modèle de produit"
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/fr_CH.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 19:10+0000\n"
"PO-Revision-Date: 2016-12-01 10:24+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: French (Switzerland) (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/fr_CH/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr_CH\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Ligne de facture"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr ""

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Template de produit"
35 changes: 35 additions & 0 deletions membership_prorrate_variable_period/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * membership_prorrate_variable_period
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: vertical-association (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 04:01+0000\n"
"PO-Revision-Date: 2016-11-17 17:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Croatian (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\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_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_account_invoice_line
msgid "Invoice Line"
msgstr "Stavka računa"

#. module: membership_prorrate_variable_period
#: code:addons/membership_prorrate_variable_period/models/account_invoice.py:25
#: code:addons/membership_prorrate_variable_period/models/product_template.py:20
#, python-format
msgid "It's not possible to prorrate daily periods."
msgstr ""

#. module: membership_prorrate_variable_period
#: model:ir.model,name:membership_prorrate_variable_period.model_product_template
msgid "Product Template"
msgstr "Predložak proizvoda"