-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
24 changed files
with
1,101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
=========================== | ||
Website Event Require Login | ||
=========================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:ebb54a318fbded1a7f689bba6793bd8899addc6510526fb9d0f44e00907757ad | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/17.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-17-0/event-17-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=17.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:%2017.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 | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- David Vidal | ||
- Rafael Blasco | ||
|
||
- `Sygel <https://www.https://sygel.es/>`__: | ||
|
||
- Manuel Regidor | ||
|
||
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/17.0/website_event_require_login>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import controllers | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2019 Tecnativa - David Vidal | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Website Event Require Login", | ||
"version": "17.0.1.0.0", | ||
"author": "Tecnativa, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/event", | ||
"category": "Event", | ||
"depends": ["website_event"], | ||
"data": ["views/event_views.xml", "views/website_event_templates.xml"], | ||
"installable": True, | ||
"license": "AGPL-3", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# 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 <[email protected]>\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 | ||
#: model:ir.model.fields,help:website_event_require_login.field_event_session__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 | ||
#: model:ir.model.fields,field_description:website_event_require_login.field_event_session__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 "&times;" | ||
#~ msgstr "&vegades;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 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 <[email protected]>\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 | ||
#: model:ir.model.fields,help:website_event_require_login.field_event_session__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 | ||
#: model:ir.model.fields,field_description:website_event_require_login.field_event_session__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 "&times;" | ||
#~ msgstr "&times;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 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 <[email protected]>\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 | ||
#: model:ir.model.fields,help:website_event_require_login.field_event_session__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 | ||
#: model:ir.model.fields,field_description:website_event_require_login.field_event_session__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 "&times;" | ||
#~ msgstr "&tiempos;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# 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 16:47+0000\n" | ||
"Last-Translator: Rémi <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: fr\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 "Fermer" | ||
|
||
#. module: website_event_require_login | ||
#: model:ir.model,name:website_event_require_login.model_event_event | ||
msgid "Event" | ||
msgstr "Évènement" | ||
|
||
#. module: website_event_require_login | ||
#: model:ir.model.fields,help:website_event_require_login.field_event_event__website_require_login | ||
#: model:ir.model.fields,help:website_event_require_login.field_event_session__website_require_login | ||
msgid "" | ||
"If set, a user must be logged in to be able to register attendees from the " | ||
"website." | ||
msgstr "" | ||
"Si coché, l'utilisateur doit être connecté pour inscrire des participant " | ||
"depuis le site 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 "Se connecter" | ||
|
||
#. 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 "Connexion requise" | ||
|
||
#. module: website_event_require_login | ||
#: model:ir.model.fields,field_description:website_event_require_login.field_event_event__website_require_login | ||
#: model:ir.model.fields,field_description:website_event_require_login.field_event_session__website_require_login | ||
msgid "Require login for website registrations" | ||
msgstr "Connexion requise pour les inscriptions sur le site 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 "Vous devez être connecté pour vous inscrire à cet évènement." | ||
|
||
#~ msgid "&times;" | ||
#~ msgstr "& ; fois ;" |
Oops, something went wrong.