Skip to content

Commit e56fefe

Browse files
[MIG] website_membership_random_order: Migration to version 19.0
TT63425
1 parent 240145e commit e56fefe

5 files changed

Lines changed: 15 additions & 26 deletions

File tree

website_membership_random_order/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Online Members Directory - Random order
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fvertical--association-lightgray.png?logo=github
24-
:target: https://github.com/OCA/vertical-association/tree/18.0/website_membership_random_order
24+
:target: https://github.com/OCA/vertical-association/tree/19.0/website_membership_random_order
2525
:alt: OCA/vertical-association
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/vertical-association-18-0/vertical-association-18-0-website_membership_random_order
27+
:target: https://translation.odoo-community.org/projects/vertical-association-19-0/vertical-association-19-0-website_membership_random_order
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -56,7 +56,7 @@ Bug Tracker
5656
Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical-association/issues>`_.
5757
In case of trouble, please check there if your issue has already been reported.
5858
If you spotted it first, help us to smash it by providing a detailed and welcomed
59-
`feedback <https://github.com/OCA/vertical-association/issues/new?body=module:%20website_membership_random_order%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59+
`feedback <https://github.com/OCA/vertical-association/issues/new?body=module:%20website_membership_random_order%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6060

6161
Do not contact contributors directly about support or help with technical issues.
6262

@@ -98,6 +98,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
9898

9999
|maintainer-pedrobaeza|
100100

101-
This module is part of the `OCA/vertical-association <https://github.com/OCA/vertical-association/tree/18.0/website_membership_random_order>`_ project on GitHub.
101+
This module is part of the `OCA/vertical-association <https://github.com/OCA/vertical-association/tree/19.0/website_membership_random_order>`_ project on GitHub.
102102

103103
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

website_membership_random_order/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
44
{
55
"name": "Online Members Directory - Random order",
6-
"version": "18.0.1.0.0",
6+
"version": "19.0.1.0.0",
77
"category": "Association",
88
"website": "https://github.com/OCA/vertical-association",
99
"author": "Tecnativa, Odoo Community Association (OCA)",

website_membership_random_order/controllers/main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33

44
from odoo.http import request, route
5-
from odoo.tools import frozendict
65

76
from odoo.addons.website_membership.controllers.main import WebsiteMembership
87

@@ -18,9 +17,7 @@ def members(
1817
"""Inject a context for being queried later on the search of the membership
1918
lines for randomizing the returned order.
2019
"""
21-
request.env.context = frozendict(
22-
request.env.context, random_membership_line_order=True
23-
)
20+
request.update_context(random_membership_line_order=True)
2421
return super().members(
2522
membership_id=membership_id,
2623
country_name=country_name,

website_membership_random_order/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Online Members Directory - Random order</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:2025b39b71ef9a23dad335685edd90b13c93b5836f3b4d90b27f734c5e7c6c30
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/vertical-association/tree/18.0/website_membership_random_order"><img alt="OCA/vertical-association" src="https://img.shields.io/badge/github-OCA%2Fvertical--association-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/vertical-association-18-0/vertical-association-18-0-website_membership_random_order"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/vertical-association/tree/19.0/website_membership_random_order"><img alt="OCA/vertical-association" src="https://img.shields.io/badge/github-OCA%2Fvertical--association-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/vertical-association-19-0/vertical-association-19-0-website_membership_random_order"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This modules extends the online members directory for displaying the
379379
results in a random order, and displays a disclaimer about it at the top
380380
of the list.</p>
@@ -406,7 +406,7 @@ <h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
406406
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/vertical-association/issues">GitHub Issues</a>.
407407
In case of trouble, please check there if your issue has already been reported.
408408
If you spotted it first, help us to smash it by providing a detailed and welcomed
409-
<a class="reference external" href="https://github.com/OCA/vertical-association/issues/new?body=module:%20website_membership_random_order%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409+
<a class="reference external" href="https://github.com/OCA/vertical-association/issues/new?body=module:%20website_membership_random_order%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
410410
<p>Do not contact contributors directly about support or help with technical issues.</p>
411411
</div>
412412
<div class="section" id="credits">
@@ -439,7 +439,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
439439
promote its widespread use.</p>
440440
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
441441
<p><a class="reference external image-reference" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a></p>
442-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/vertical-association/tree/18.0/website_membership_random_order">OCA/vertical-association</a> project on GitHub.</p>
442+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/vertical-association/tree/19.0/website_membership_random_order">OCA/vertical-association</a> project on GitHub.</p>
443443
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
444444
</div>
445445
</div>

website_membership_random_order/templates/website_membership_templates.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
<template id="index" inherit_id="website_membership.index">
44
<xpath expr="//t[@t-if='not memberships_partner_ids']" position="after">
55
<t t-else="">
6-
<div
7-
class="s_alert alert-delta clearfix w-100 s_alert_md"
8-
data-name="Alert"
9-
>
6+
<div class="oe_unmovable s_alert s_alert_md alert alert-info w-100 row">
107
<i
11-
class="fa fa-2x fa-info-circle s_alert_icon"
12-
data-original-title=""
13-
title=""
14-
aria-describedby="tooltip715756"
8+
class="fa fa-2x fa-info-circle fa-stack o_not_editable s_alert_icon rounded-1 col-auto"
159
/>
16-
<div class="s_alert_content">
10+
<div class="s_alert_content col d-flex align-items-center">
1711
<p
18-
style="text-align: center"
19-
>This order of appearance is random and changes each time you refresh.
20-
<br />
21-
</p>
12+
class="mb-0"
13+
>This order of appearance is random and changes each time you refresh.</p>
2214
</div>
2315
</div>
2416
</t>

0 commit comments

Comments
 (0)