[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:
54
membership_status_in_portal/README.rst
Normal file
54
membership_status_in_portal/README.rst
Normal file
@@ -0,0 +1,54 @@
|
||||
==========================
|
||||
membership_status_in_portal
|
||||
==========================
|
||||
|
||||
Display the membership status of the connected user in the portal.
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
In the portal account sidebar (all ``/my`` pages, including ``/my/home``),
|
||||
this module shows the native Odoo membership status of the connected user
|
||||
(``res.partner.membership_state`` provided by the ``membership`` module).
|
||||
|
||||
No registration or renewal button is displayed: non-members only see their
|
||||
status.
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
Use Odoo normal module installation procedure to install
|
||||
``membership_status_in_portal``.
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
None yet.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `our issues website <https://git.elabore.coop/elabore/member-tools/issues>`_. In case of
|
||||
trouble, please check there if your issue has already been
|
||||
reported. If you spotted it first, help us smashing it by providing a
|
||||
detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Stéphan Sainléger
|
||||
|
||||
Funders
|
||||
-------
|
||||
|
||||
The development of this module has been financially supported by:
|
||||
|
||||
* Elabore (https://elabore.coop)
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
This module is maintained by Elabore.
|
||||
Reference in New Issue
Block a user