Prorate membership fee for variable periods
Helper module for making the prorate correctly when you are dealing with variable periods in your memberships, which functionality is provided by the module membership_variable_period.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Automatically prorates membership fees when a membership product uses a variable period (weeks, months or years). Daily periods cannot be prorated and raise an error.
This module is installed automatically when both the membership prorate and variable period features are present. It adjusts how the membership period is calculated so that the prorated fee matches the real period of a membership product whose duration is variable.
- For membership products with a fixed period, the standard behaviour is kept.
- For products measured in weeks, months or years, the period starts at the beginning of the current week, month or year, and ends the day before the next renewal date.
- The next renewal date is calculated from the start of the week, month or year, plus the quantity of periods defined on the product.
- Daily membership periods are not supported for prorating: trying to use them shows an error message telling the user it is not possible to prorate daily periods.
It touches the membership interval calculation on invoice lines (account.move.line) and the next date calculation on membership products (product.template). No new menus or screens are added; the change is visible in the membership fee amount computed on invoices for variable-period memberships.
Models and fields (2)
- product.template · extends an existing model
- account.move.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/vertical-association.
terminal Installation and usage
OCA documentation · Odoo 18.0Installation
Source · Odoo 18.0This module is auto-installed if you have membership_variable_period and membership_prorate modules installed.
Usage
Source · Odoo 18.0For leading with variable periods and prorate, 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.
No verified information in OCA: Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.