Skip to content

Commit a87ed6a

Browse files
committed
Merge PR #411 into 17.0
Signed-off-by pedrobaeza
2 parents f4d50ff + 64cb42f commit a87ed6a

18 files changed

+938
-0
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
====================================
2+
Website Event Membership Restriction
3+
====================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:abffb2ff809a11f93bafe1d880b47e4ef4365845822ed404531f8db536120c93
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github
20+
:target: https://github.com/OCA/event/tree/17.0/website_event_membership_restriction
21+
:alt: OCA/event
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/event-17-0/event-17-0-website_event_membership_restriction
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows you to restrict event registration to members only.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Configuration
39+
=============
40+
41+
1. Go to *Events > Events*
42+
2. Create or select one event.
43+
3. Check or uncheck "Allow registration only to members".
44+
45+
Usage
46+
=====
47+
48+
1. Go to the website.
49+
2. Go to "Events" section and select one of them.
50+
3. If the option ‘allow members only’ is active and the user is not a
51+
member or not logged in, he/she will not be able to access the event
52+
registration.
53+
54+
Bug Tracker
55+
===========
56+
57+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/issues>`_.
58+
In case of trouble, please check there if your issue has already been reported.
59+
If you spotted it first, help us to smash it by providing a detailed and welcomed
60+
`feedback <https://github.com/OCA/event/issues/new?body=module:%20website_event_membership_restriction%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
61+
62+
Do not contact contributors directly about support or help with technical issues.
63+
64+
Credits
65+
=======
66+
67+
Authors
68+
-------
69+
70+
* Tecnativa
71+
72+
Contributors
73+
------------
74+
75+
- `Tecnativa <https://www.tecnativa.com>`__:
76+
77+
- Pedro M. Baeza
78+
- Pilar Vargas
79+
80+
Maintainers
81+
-----------
82+
83+
This module is maintained by the OCA.
84+
85+
.. image:: https://odoo-community.org/logo.png
86+
:alt: Odoo Community Association
87+
:target: https://odoo-community.org
88+
89+
OCA, or the Odoo Community Association, is a nonprofit organization whose
90+
mission is to support the collaborative development of Odoo features and
91+
promote its widespread use.
92+
93+
This module is part of the `OCA/event <https://github.com/OCA/event/tree/17.0/website_event_membership_restriction>`_ project on GitHub.
94+
95+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
2+
3+
from . import models
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2024 Tecnativa - Pilar Vargas
2+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
3+
{
4+
"name": "Website Event Membership Restriction",
5+
"summary": "Restrict event registration to members only",
6+
"version": "17.0.1.0.0",
7+
"category": "Website",
8+
"website": "https://github.com/OCA/event",
9+
"author": "Tecnativa, Odoo Community Association (OCA)",
10+
"license": "LGPL-3",
11+
"installable": True,
12+
"depends": ["website_event", "membership"],
13+
"data": [
14+
"data/website_event_membership_info.xml",
15+
"views/event_event_views.xml",
16+
"views/event_templates.xml",
17+
],
18+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!-- Copyright 2024 Tecnativa - Pilar Vargas
3+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
4+
<odoo>
5+
<template id="website_event_membership_info" name="Membership Information">
6+
<t t-call="website.layout">
7+
<div id="wrap" class="oe_structure oe_empty">
8+
<section
9+
class="s_title pt40 pb40 o_colored_level"
10+
data-snippet="s_title"
11+
data-name="Title"
12+
>
13+
<div class="container s_allow_columns">
14+
<h2 style="text-align: center;">
15+
<font
16+
style="font-size: 62px;"
17+
class="o_default_snippet_text"
18+
>
19+
<span
20+
style="font-size: 48px;"
21+
>Membership Information</span>
22+
</font>
23+
</h2>
24+
</div>
25+
</section>
26+
<section
27+
class="s_text_block pt40 pb40 o_colored_level"
28+
data-snippet="s_text_block"
29+
data-name="Text"
30+
>
31+
<div class="s_allow_columns o_container_small">
32+
<p class="o_default_snippet_text">
33+
The event is exclusive for members of the association.
34+
</p>
35+
<p class="o_default_snippet_text">
36+
Contact the Association staff in case of further questions or troubles.
37+
<br />
38+
</p>
39+
</div>
40+
</section>
41+
</div>
42+
</t>
43+
</template>
44+
<record id="membership_info_page" model="website.page">
45+
<field name="is_published">True</field>
46+
<field name="url">/membership-info</field>
47+
<field name="view_id" ref="website_event_membership_info" />
48+
<field name="track">True</field>
49+
</record>
50+
</odoo>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * website_event_membership_restriction
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-06-04 14:36+0000\n"
10+
"PO-Revision-Date: 2024-06-04 16:38+0200\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.0.1\n"
19+
20+
#. module: website_event_membership_restriction
21+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
22+
msgid "(only"
23+
msgstr "(solo"
24+
25+
#. module: website_event_membership_restriction
26+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
27+
msgid ""
28+
"<font style=\"font-size: 62px;\" class=\"o_default_snippet_text\">\n"
29+
" <span style=\"font-size: 48px;\">Membership "
30+
"Information</span>\n"
31+
" </font>"
32+
msgstr ""
33+
"<font style=\"font-size: 62px;\" class=\"o_default_snippet_text\">\n"
34+
" <span style=\"font-size: 48px;\">Información "
35+
"sobre socios</span>\n"
36+
" </font>"
37+
38+
#. module: website_event_membership_restriction
39+
#: model:ir.model.fields,help:website_event_membership_restriction.field_event_event__registration_membership_only
40+
#: model:ir.model.fields,help:website_event_membership_restriction.field_event_session__registration_membership_only
41+
msgid "Allow registration only to members"
42+
msgstr "Permitir registro solo a socios"
43+
44+
#. module: website_event_membership_restriction
45+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
46+
msgid ""
47+
"Contact the Association staff in case of further questions or troubles.\n"
48+
" <br/>"
49+
msgstr ""
50+
"Póngase en contacto con el personal de la Asociación en caso de dudas o "
51+
"problemas.\n"
52+
" <br/>"
53+
54+
#. module: website_event_membership_restriction
55+
#: model:ir.model,name:website_event_membership_restriction.model_event_event
56+
msgid "Event"
57+
msgstr "Evento"
58+
59+
#. module: website_event_membership_restriction
60+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
61+
msgid "Members only"
62+
msgstr "Solo socios"
63+
64+
#. module: website_event_membership_restriction
65+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
66+
msgid "Register"
67+
msgstr "Registro"
68+
69+
#. module: website_event_membership_restriction
70+
#: model:ir.model.fields,field_description:website_event_membership_restriction.field_event_event__registration_membership_only
71+
#: model:ir.model.fields,field_description:website_event_membership_restriction.field_event_session__registration_membership_only
72+
msgid "Registration Membership Only"
73+
msgstr "Registro sólo para socios"
74+
75+
#. module: website_event_membership_restriction
76+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
77+
msgid "The event is exclusive for members of the association."
78+
msgstr "El evento es exclusivo para miembros de la asociación."
79+
80+
#. module: website_event_membership_restriction
81+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
82+
msgid "available)"
83+
msgstr "disponible)"
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * website_event_membership_restriction
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-06-05 12:39+0000\n"
10+
"Last-Translator: mymage <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: website_event_membership_restriction
20+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
21+
msgid "(only"
22+
msgstr "(solo"
23+
24+
#. module: website_event_membership_restriction
25+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
26+
msgid ""
27+
"<font style=\"font-size: 62px;\" class=\"o_default_snippet_text\">\n"
28+
" <span style=\"font-size: 48px;\">Membership Information</span>\n"
29+
" </font>"
30+
msgstr ""
31+
"<font style=\"font-size: 62px;\" class=\"o_default_snippet_text\">\n"
32+
" <span style=\"font-size: 48px;\""
33+
">Informazioni iscrizione</span>\n"
34+
" </font>"
35+
36+
#. module: website_event_membership_restriction
37+
#: model:ir.model.fields,help:website_event_membership_restriction.field_event_event__registration_membership_only
38+
#: model:ir.model.fields,help:website_event_membership_restriction.field_event_session__registration_membership_only
39+
msgid "Allow registration only to members"
40+
msgstr "Consente registrazione solo ai membri"
41+
42+
#. module: website_event_membership_restriction
43+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
44+
msgid ""
45+
"Contact the Association staff in case of further questions or troubles.\n"
46+
" <br/>"
47+
msgstr ""
48+
"Contattare lo staff dell'associazione nel caso di altre domande o problemi.\n"
49+
" <br/>"
50+
51+
#. module: website_event_membership_restriction
52+
#: model:ir.model,name:website_event_membership_restriction.model_event_event
53+
msgid "Event"
54+
msgstr "Evento"
55+
56+
#. module: website_event_membership_restriction
57+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
58+
msgid "Members only"
59+
msgstr "Solo membri"
60+
61+
#. module: website_event_membership_restriction
62+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
63+
msgid "Register"
64+
msgstr "Registro"
65+
66+
#. module: website_event_membership_restriction
67+
#: model:ir.model.fields,field_description:website_event_membership_restriction.field_event_event__registration_membership_only
68+
#: model:ir.model.fields,field_description:website_event_membership_restriction.field_event_session__registration_membership_only
69+
msgid "Registration Membership Only"
70+
msgstr "Solo registrazione iscrizione"
71+
72+
#. module: website_event_membership_restriction
73+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.website_event_membership_info
74+
msgid "The event is exclusive for members of the association."
75+
msgstr "L'evento è esclusivo per i membri dell'associazione."
76+
77+
#. module: website_event_membership_restriction
78+
#: model_terms:ir.ui.view,arch_db:website_event_membership_restriction.registration_template
79+
msgid "available)"
80+
msgstr "disponibile)"

0 commit comments

Comments
 (0)