Files
member-tools/membership_status_in_portal/__manifest__.py
Stéphan Sainléger 34f70b342c [ADD] membership_status_in_portal: portal membership status badge
Add a generic module displaying the connected portal user's membership
status in the account sidebar, below the "Edit information" link.

The native Odoo membership label (``res.partner.membership_state`` from
the ``membership`` module) is shown as a colored badge:
- green (``text-bg-success``) for free / paid members;
- yellow (``text-bg-warning``) for waiting / invoiced members;
- red (``text-bg-danger``) otherwise.

Color, icon and label are computed in the QWeb template; no model or
field is added. Includes HttpCase tests covering member and non-member
rendering and asserting no action button is rendered.
2026-09-21 14:26:43 +02:00

24 lines
621 B
Python

# Copyright 2026 Stéphan Sainléger (Elabore)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "membership_status_in_portal",
"version": "18.0.1.0.0",
"author": "Elabore",
"maintainer": "Elabore",
"website": "https://git.elabore.coop/elabore/member-tools",
"license": "AGPL-3",
"category": "Website",
"summary": "Display the membership status of portal users",
"depends": [
"portal",
"membership",
],
"data": [
"views/portal_sidebar.xml",
],
"installable": True,
"auto_install": False,
"application": False,
}