[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.
This commit is contained in:
23
membership_status_in_portal/__manifest__.py
Normal file
23
membership_status_in_portal/__manifest__.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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,
|
||||
}
|
||||
Reference in New Issue
Block a user