diff --git a/setup/website_event_external/odoo/addons/website_event_external b/setup/website_event_external/odoo/addons/website_event_external new file mode 120000 index 000000000..ec6730b6b --- /dev/null +++ b/setup/website_event_external/odoo/addons/website_event_external @@ -0,0 +1 @@ +../../../../website_event_external \ No newline at end of file diff --git a/setup/website_event_external/setup.py b/setup/website_event_external/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/website_event_external/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/website_event_external/README.rst b/website_event_external/README.rst new file mode 100644 index 000000000..77f7d4771 --- /dev/null +++ b/website_event_external/README.rst @@ -0,0 +1,116 @@ +============== +External Event +============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:bc5436131d883ca3071671102d5a82320c36e56fae5988c748a66633d5698801 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/16.0/website_event_external + :alt: OCA/event +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_external + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of website_event to support +external events. This allows to list together with internal events, +external events for which registration is managed on another website. + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +This module is useful when you want to list events which are managed on +an external website. For instance events managed by partners. + +It allows to list the external module together with you own events, +without managing registration for the external ones, but redirecting to +external website instead. + +Usage +===== + +To use this module, you need to: + +1. Go to an event (on the backend) +2. Just before the date of the event you have a boolean field "External + Event" +3. Select that field and another one named "External Link" will appear + that becomes required if "External Event" is selected + +When "External Event" is selected, a number of other fields are hidden +on the event form view : + +- "Registration Statistics" and "Attendees" smart button +- "Extra Register Button" +- "Limit Attendees" and "Confirmed Attendees" +- "Autoconfirmation" +- the full notebook + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Le Filament + +Contributors +------------ + +- remi-filament 30716308+remi-filament@users.noreply.github.com + (https://le-filament.com) + +Other credits +------------- + +The development of this module has been financially supported by: + +- Solagro + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_event_external/__init__.py b/website_event_external/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/website_event_external/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/website_event_external/__manifest__.py b/website_event_external/__manifest__.py new file mode 100644 index 000000000..cfcde9810 --- /dev/null +++ b/website_event_external/__manifest__.py @@ -0,0 +1,16 @@ +{ + "name": "External Event", + "version": "16.0.1.0.0", + "category": "Marketing/Events", + "author": "Le Filament, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/event", + "development_status": "Beta", + "license": "AGPL-3", + "depends": ["website_event"], + "data": [ + "templates/website_event_template.xml", + "views/event_event_view.xml", + ], + "installable": True, + "auto_install": False, +} diff --git a/website_event_external/i18n/fr.po b/website_event_external/i18n/fr.po new file mode 100644 index 000000000..51abf7edb --- /dev/null +++ b/website_event_external/i18n/fr.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_event_external +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-08-14 09:53+0000\n" +"PO-Revision-Date: 2024-08-14 09:53+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_event_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit +msgid "Registrations are performed on external website : " +msgstr "" +"Les inscriptions sont réalisées sur un site externe : " + +#. module: website_event_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit +msgid "More information / Register" +msgstr "Plus d'informations / S'inscrire" + +#. module: website_event_external +#: model:ir.model,name:website_event_external.model_event_event +msgid "Event" +msgstr "Évènement" + +#. module: website_event_external +#: model:ir.model.fields,field_description:website_event_external.field_event_event__is_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_list_external_link_inherit +msgid "External Event" +msgstr "Évènement externe" + +#. module: website_event_external +#: model:ir.model.fields,field_description:website_event_external.field_event_event__external_link +msgid "External Link" +msgstr "Lien externe" + +#. module: website_event_external +#: model:ir.model.fields,help:website_event_external.field_event_event__external_link +msgid "External link for registering on this event" +msgstr "Lien externe pour s'inscrire à l'évènement" diff --git a/website_event_external/i18n/website_event_external.pot b/website_event_external/i18n/website_event_external.pot new file mode 100644 index 000000000..c49dbd881 --- /dev/null +++ b/website_event_external/i18n/website_event_external.pot @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_event_external +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-08-14 09:53+0000\n" +"PO-Revision-Date: 2024-08-14 09:53+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_event_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit +msgid "Registrations are performed on external website : " +msgstr "" + +#. module: website_event_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit +msgid "More information / Register" +msgstr "" + +#. module: website_event_external +#: model:ir.model,name:website_event_external.model_event_event +msgid "Event" +msgstr "" + +#. module: website_event_external +#: model:ir.model.fields,field_description:website_event_external.field_event_event__is_external +#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_list_external_link_inherit +msgid "External Event" +msgstr "" + +#. module: website_event_external +#: model:ir.model.fields,field_description:website_event_external.field_event_event__external_link +msgid "External Link" +msgstr "" + +#. module: website_event_external +#: model:ir.model.fields,help:website_event_external.field_event_event__external_link +msgid "External link for registering on this event" +msgstr "" diff --git a/website_event_external/models/__init__.py b/website_event_external/models/__init__.py new file mode 100644 index 000000000..b6bc38997 --- /dev/null +++ b/website_event_external/models/__init__.py @@ -0,0 +1 @@ +from . import event_event diff --git a/website_event_external/models/event_event.py b/website_event_external/models/event_event.py new file mode 100644 index 000000000..aa3657ccc --- /dev/null +++ b/website_event_external/models/event_event.py @@ -0,0 +1,42 @@ +# Copyright 2024- Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class Event(models.Model): + _inherit = "event.event" + + # ------------------------------------------------------ + # Fields declaration + # ------------------------------------------------------ + is_external = fields.Boolean("External Event") + external_link = fields.Char(help="External link for registering on this event") + + # ------------------------------------------------------ + # SQL Constraints + # ------------------------------------------------------ + + # ------------------------------------------------------ + # Default methods + # ------------------------------------------------------ + + # ------------------------------------------------------ + # Computed fields / Search Fields + # ------------------------------------------------------ + + # ------------------------------------------------------ + # Onchange / Constraints + # ------------------------------------------------------ + + # ------------------------------------------------------ + # CRUD methods (ORM overrides) + # ------------------------------------------------------ + + # ------------------------------------------------------ + # Actions + # ------------------------------------------------------ + + # ------------------------------------------------------ + # Business methods + # ------------------------------------------------------ diff --git a/website_event_external/readme/CONTEXT.md b/website_event_external/readme/CONTEXT.md new file mode 100644 index 000000000..8c64a6589 --- /dev/null +++ b/website_event_external/readme/CONTEXT.md @@ -0,0 +1,4 @@ +This module is useful when you want to list events which are managed on an external website. For instance events managed by partners. + +It allows to list the external module together with you own events, without managing registration for the external ones, but redirecting to external website instead. + diff --git a/website_event_external/readme/CONTRIBUTORS.md b/website_event_external/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..b9db1e67a --- /dev/null +++ b/website_event_external/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- remi-filament <30716308+remi-filament@users.noreply.github.com> (https://le-filament.com) diff --git a/website_event_external/readme/CREDITS.md b/website_event_external/readme/CREDITS.md new file mode 100644 index 000000000..4b7979897 --- /dev/null +++ b/website_event_external/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Solagro diff --git a/website_event_external/readme/DESCRIPTION.md b/website_event_external/readme/DESCRIPTION.md new file mode 100644 index 000000000..04fad7c82 --- /dev/null +++ b/website_event_external/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module extends the functionality of website_event to support external events. +This allows to list together with internal events, external events for which registration is managed on another website. + diff --git a/website_event_external/readme/USAGE.md b/website_event_external/readme/USAGE.md new file mode 100644 index 000000000..087b57705 --- /dev/null +++ b/website_event_external/readme/USAGE.md @@ -0,0 +1,14 @@ +To use this module, you need to: + +1. Go to an event (on the backend) +1. Just before the date of the event you have a boolean field "External Event" +1. Select that field and another one named "External Link" will appear that becomes required if "External Event" is selected + + +When "External Event" is selected, a number of other fields are hidden on the event form view : +- "Registration Statistics" and "Attendees" smart button +- "Extra Register Button" +- "Limit Attendees" and "Confirmed Attendees" +- "Autoconfirmation" +- the full notebook + diff --git a/website_event_external/static/description/icon.png b/website_event_external/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/website_event_external/static/description/icon.png differ diff --git a/website_event_external/static/description/index.html b/website_event_external/static/description/index.html new file mode 100644 index 000000000..7046e138b --- /dev/null +++ b/website_event_external/static/description/index.html @@ -0,0 +1,464 @@ + + + + + +External Event + + + +
+

External Event

+ + +

Beta License: AGPL-3 OCA/event Translate me on Weblate Try me on Runboat

+

This module extends the functionality of website_event to support +external events. This allows to list together with internal events, +external events for which registration is managed on another website.

+

Table of contents

+ +
+

Use Cases / Context

+

This module is useful when you want to list events which are managed on +an external website. For instance events managed by partners.

+

It allows to list the external module together with you own events, +without managing registration for the external ones, but redirecting to +external website instead.

+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to an event (on the backend)
  2. +
  3. Just before the date of the event you have a boolean field “External +Event”
  4. +
  5. Select that field and another one named “External Link” will appear +that becomes required if “External Event” is selected
  6. +
+

When “External Event” is selected, a number of other fields are hidden +on the event form view :

+
    +
  • “Registration Statistics” and “Attendees” smart button
  • +
  • “Extra Register Button”
  • +
  • “Limit Attendees” and “Confirmed Attendees”
  • +
  • “Autoconfirmation”
  • +
  • the full notebook
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Le Filament
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Solagro
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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 project on GitHub.

+

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

+
+
+
+ + diff --git a/website_event_external/templates/website_event_template.xml b/website_event_external/templates/website_event_template.xml new file mode 100644 index 000000000..79a6f81ee --- /dev/null +++ b/website_event_external/templates/website_event_template.xml @@ -0,0 +1,47 @@ + + + + + + diff --git a/website_event_external/views/event_event_view.xml b/website_event_external/views/event_event_view.xml new file mode 100644 index 000000000..b2b3e9700 --- /dev/null +++ b/website_event_external/views/event_event_view.xml @@ -0,0 +1,77 @@ + + + + + event.external.form.inherit + event.event + + + + + + + + + + + {"invisible":[("is_external", "=", True)]} + + + {"invisible":[("is_external", "=", True)]} + + + {"invisible":[("is_external", "=", True)]} + + + {"invisible":[("is_external", "=", True)]} + + + + + + website.event.external.form.inherit + event.event + + + + + {"invisible":[("is_external", "=", True)]} + + + {"invisible":[("is_external", "=", True)]} + + + +