Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
601237a
[10.0] website_event_require_login: New module
chienandalu Mar 15, 2019
be45d19
[MIG] website_event_require_login: Migration to 11.0
emagdalenaC2i Apr 8, 2019
4931394
[MIG] website_event_require_login: Migration to 12.0
emagdalenaC2i May 22, 2019
72dee9f
Update translation files
oca-transbot Jun 16, 2019
11fb73f
[UPD] README.rst
OCA-git-bot Jul 29, 2019
f271c36
[UPD] Update website_event_require_login.pot
oca-travis Aug 20, 2019
7ebfa89
Update translation files
oca-transbot Aug 31, 2019
c36e1f1
[IMP] website_event_require_login: black, isort, prettier
manuelregidor Oct 9, 2020
fc8fde0
[MIG]website_event_require_login: Migration to 13.0
manuelregidor Oct 9, 2020
fe708c3
[MIG][14.0] website_event_require_login: Migration to 14.0
Jun 9, 2021
796b65a
[UPD] Update website_event_require_login.pot
oca-travis Aug 16, 2021
84c0bbe
[UPD] README.rst
OCA-git-bot Aug 16, 2021
5af1b63
[FIX] website_event_require_login: fix _render_template() call
leiremartinezdesantos Sep 6, 2021
61e01be
website_event_require_login 14.0.1.0.1
OCA-git-bot Sep 8, 2021
b093a85
Added translation using Weblate (Portuguese)
pedrocs-exo Apr 20, 2022
a74c147
Translated using Weblate (Portuguese)
pedrocs-exo Apr 20, 2022
65424e6
Added translation using Weblate (Italian)
primes2h Oct 8, 2022
b0c010a
Translated using Weblate (Italian)
primes2h Oct 8, 2022
6c4313b
Translated using Weblate (Italian)
primes2h Oct 18, 2022
1761378
Translated using Weblate (Italian)
primes2h Oct 26, 2022
2c7c99c
[MIG][15.0]website_event_require_login:Migration to 15.0
bizzappdev Mar 6, 2023
c4b9902
website_event_require_login 15.0.1.0.1 (+2 squashed commits)
May 16, 2023
462e4fe
Update translation files
weblate May 17, 2023
7dc5c91
[16.0][MIG] website_event_require_login: Migration to version 16.0
kwoychesko Jun 23, 2023
14abf6b
[UPD] Update website_event_require_login.pot
Jun 26, 2023
63ba52e
[UPD] README.rst
OCA-git-bot Jun 26, 2023
e830d0c
Update translation files
weblate Jun 26, 2023
60add1d
[UPD] Update website_event_require_login.pot
Jul 11, 2023
9b3a4a7
Update translation files
weblate Jul 11, 2023
46ee6b9
Translated using Weblate (Italian)
mymage Jul 17, 2023
a998dd0
Translated using Weblate (Italian)
mymage Jul 19, 2023
caef7fb
Translated using Weblate (Spanish)
Ivorra78 Jul 22, 2023
42032a5
[UPD] README.rst
OCA-git-bot Sep 3, 2023
bae72d1
Translated using Weblate (Italian)
francesco-ooops Oct 11, 2023
076ea6b
Translated using Weblate (Italian)
mymage Dec 31, 2023
4b67652
Added translation using Weblate (Catalan)
eugenichafer Mar 23, 2024
c0d5542
Translated using Weblate (Catalan)
eugenichafer Mar 23, 2024
3f326db
Added translation using Weblate (German)
AndreVolksdorf Jul 3, 2024
1841c83
Translated using Weblate (German)
AndreVolksdorf Jul 3, 2024
6742afd
Added translation using Weblate (French)
remi-filament Jul 3, 2024
9664484
Translated using Weblate (French)
remi-filament Jul 3, 2024
5fb2c81
[FIX] website_event_require_login: modal cannot be closed
remi-filament Jul 8, 2024
f83e9b7
[UPD] Update website_event_require_login.pot
Jul 8, 2024
0bb2f8d
[BOT] post-merge updates
OCA-git-bot Jul 8, 2024
732d64c
Update translation files
weblate Jul 8, 2024
aab895c
[IMP] website_event_require_login: black, isort, prettier
pilarvargas-tecnativa Nov 14, 2024
92c6421
[MIG] website_event_require_login: Migration to version 17.0
pilarvargas-tecnativa Nov 14, 2024
d3d49ff
[UPD] Update website_event_require_login.pot
Nov 15, 2024
cbf1e29
[BOT] post-merge updates
OCA-git-bot Nov 15, 2024
246d0b2
Update translation files
weblate Nov 15, 2024
160d4e7
Added translation using Weblate (Finnish)
timotalvitie Sep 2, 2025
a299aa9
Added translation using Weblate (Finnish (fi_FI))
timotalvitie Sep 2, 2025
08d65be
Translated using Weblate (Finnish)
timotalvitie Sep 2, 2025
005f73d
[MIG] website_event_require_login: Migration to 18.0
mathben Mar 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ addon | version | maintainers | summary
[website_event_membership_restriction](website_event_membership_restriction/) | 18.0.1.0.0 | | Restrict event registration to members only
[website_event_questions_by_ticket](website_event_questions_by_ticket/) | 18.0.1.0.0 | | Events Questions conditional to the chosen ticket
[website_event_require_legal](website_event_require_legal/) | 18.0.1.0.0 | | Website Event Require Legal
[website_event_require_login](website_event_require_login/) | 18.0.1.0.0 | <a href='https://github.com/mathben'><img src='https://github.com/mathben.png' width='32' height='32' style='border-radius:50%;' alt='mathben'/></a> | Website Event Require login

[//]: # (end addons)

Expand Down
110 changes: 110 additions & 0 deletions website_event_require_login/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
===========================
Website Event Require Login
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:363a745d898a4c188d6745c3ba3893619e53c43b46d151476442727b254a5cf6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github
:target: https://github.com/OCA/event/tree/18.0/website_event_require_login
:alt: OCA/event
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/event-18-0/event-18-0-website_event_require_login
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Require login for event registration from the website.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to an event and set the Website Require option on.

Usage
=====

In the website go to an event that requires login and try to register
being logged out.

If the event is set up to require login, a pop up will be shown
requiring the user to do so.

Known issues / Roadmap
======================

- An interesting option could be to be able to hide events to
unregistered users.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/event/issues/new?body=module:%20website_event_require_login%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Tecnativa
* TechnoLibre

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- David Vidal
- Rafael Blasco

- `Sygel <https://www.sygel.es/>`__:

- Manuel Regidor

- `TechnoLibre <https://technolibre.ca>`__:

- Mathieu Benoit

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/event <https://github.com/OCA/event/tree/18.0/website_event_require_login>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions website_event_require_login/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import controllers
from . import models
22 changes: 22 additions & 0 deletions website_event_require_login/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2019 Tecnativa - David Vidal
# Copyright 2026 TechnoLibre - Mathieu Benoit
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Website Event Require Login",
"version": "18.0.1.0.0",
"author": "Tecnativa, " "Odoo Community Association (OCA), " "TechnoLibre",
"website": "https://github.com/OCA/event",
"category": "Event",
"depends": ["website_event"],
"data": ["views/event_views.xml", "views/website_event_templates.xml"],
"assets": {
"web.assets_frontend": [
"website_event_require_login/static/src/js/registration_login_required.esm.js",
],
"web.assets_tests": [
"/website_event_require_login/static/tests/tours/*",
],
},
"installable": True,
"license": "AGPL-3",
}
1 change: 1 addition & 0 deletions website_event_require_login/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
19 changes: 19 additions & 0 deletions website_event_require_login/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo.http import request, route

from odoo.addons.website_event.controllers.main import WebsiteEventController


class RequireLoginToRegister(WebsiteEventController):
@route()
def registration_new(self, event, **post):
public_user = request.env.user == request.website.user_id
if public_user and event.website_require_login:
return request.env["ir.ui.view"]._render_template(
"website_event_require_login"
".modal_attendees_registration_login_required",
{"event_url": event.website_url},
)
return super().registration_new(event, **post)
59 changes: 59 additions & 0 deletions website_event_require_login/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_event_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-23 15:37+0000\n"
"Last-Translator: Eugeni Chafer <eugeni@chafer.cat>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Close"
msgstr "Tancar"

#. module: website_event_require_login
#: model:ir.model,name:website_event_require_login.model_event_event
msgid "Event"
msgstr "Esdeveniment"

#. module: website_event_require_login
#: model:ir.model.fields,help:website_event_require_login.field_event_event__website_require_login
msgid ""
"If set, a user must be logged in to be able to register attendees from the "
"website."
msgstr ""
"Si està establert, l'usuari ha d'estar registrat per a poder inscriure "
"assistents des del portal."

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login"
msgstr "Registre"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login required"
msgstr "Registre obligatori"

#. module: website_event_require_login
#: model:ir.model.fields,field_description:website_event_require_login.field_event_event__website_require_login
msgid "Require login for website registrations"
msgstr "Registre obligatori per a inscripcions des del portal"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "You must be logged in to register for this event."
msgstr "Has d'estar registrat per a poder inscriure't en aquest esdeveniment."

#~ msgid "&amp;times;"
#~ msgstr "&amp;vegades;"
60 changes: 60 additions & 0 deletions website_event_require_login/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_event_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-03 12:49+0000\n"
"Last-Translator: André Volksdorf <volksdorf@smartpage.de>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Close"
msgstr "Schließen"

#. module: website_event_require_login
#: model:ir.model,name:website_event_require_login.model_event_event
msgid "Event"
msgstr "Veranstaltung"

#. module: website_event_require_login
#: model:ir.model.fields,help:website_event_require_login.field_event_event__website_require_login
msgid ""
"If set, a user must be logged in to be able to register attendees from the "
"website."
msgstr ""
"Wenn diese Option aktiviert ist, muss ein Benutzer angemeldet sein, um "
"Teilnehmer über die Website registrieren zu können."

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login"
msgstr "Anmelden"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login required"
msgstr "Anmeldung erforderlich"

#. module: website_event_require_login
#: model:ir.model.fields,field_description:website_event_require_login.field_event_event__website_require_login
msgid "Require login for website registrations"
msgstr "Anmeldung für Website-Registrierungen erforderlich"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "You must be logged in to register for this event."
msgstr ""
"Sie müssen eingeloggt sein, um sich für diese Veranstaltung anzumelden."

#~ msgid "&amp;times;"
#~ msgstr "&amp;times;"
60 changes: 60 additions & 0 deletions website_event_require_login/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_event_require_login
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-23 14:23+0000\n"
"PO-Revision-Date: 2023-07-22 20:09+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Close"
msgstr "Cerrar"

#. module: website_event_require_login
#: model:ir.model,name:website_event_require_login.model_event_event
msgid "Event"
msgstr "Evento"

#. module: website_event_require_login
#: model:ir.model.fields,help:website_event_require_login.field_event_event__website_require_login
msgid ""
"If set, a user must be logged in to be able to register attendees from the "
"website."
msgstr ""
"Si está establecido, el usuario deberá iniciar sesión para registrar "
"asistentes desde el sito web."

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login"
msgstr "Iniciar sesión"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "Login required"
msgstr "Inicio de sesión requerido"

#. module: website_event_require_login
#: model:ir.model.fields,field_description:website_event_require_login.field_event_event__website_require_login
msgid "Require login for website registrations"
msgstr "Requerir inicio de sesión para registros desde la página web"

#. module: website_event_require_login
#: model_terms:ir.ui.view,arch_db:website_event_require_login.modal_attendees_registration_login_required
msgid "You must be logged in to register for this event."
msgstr "Debe iniciar sesión para poder regitrase en este evento."

#~ msgid "&amp;times;"
#~ msgstr "&amp;tiempos;"
Loading