Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] website_event_external #402

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions setup/website_event_external/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
116 changes: 116 additions & 0 deletions website_event_external/README.rst
Original file line number Diff line number Diff line change
@@ -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 <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_external%0Aversion:%2016.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
-------

* Le Filament

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

- remi-filament [email protected]
(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 <https://github.com/OCA/event/tree/16.0/website_event_external>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions website_event_external/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions website_event_external/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
48 changes: 48 additions & 0 deletions website_event_external/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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 "<em>Registrations are performed on <b>external website : </b></em>"
msgstr ""
"<em>Les inscriptions sont réalisées sur un <b>site externe : </b></em>"

#. module: website_event_external
#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit
msgid "<span>More information / Register</span>"
msgstr "<span>Plus d'informations / S'inscrire</span>"

#. 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"
47 changes: 47 additions & 0 deletions website_event_external/i18n/website_event_external.pot
Original file line number Diff line number Diff line change
@@ -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 "<em>Registrations are performed on <b>external website : </b></em>"
msgstr ""

#. module: website_event_external
#: model_terms:ir.ui.view,arch_db:website_event_external.website_event_external_link_inherit
msgid "<span>More information / Register</span>"
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 ""
1 change: 1 addition & 0 deletions website_event_external/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import event_event
42 changes: 42 additions & 0 deletions website_event_external/models/event_event.py
Original file line number Diff line number Diff line change
@@ -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
# ------------------------------------------------------
4 changes: 4 additions & 0 deletions website_event_external/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -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.

1 change: 1 addition & 0 deletions website_event_external/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- remi-filament <[email protected]> (https://le-filament.com)
3 changes: 3 additions & 0 deletions website_event_external/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The development of this module has been financially supported by:

- Solagro
3 changes: 3 additions & 0 deletions website_event_external/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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.

14 changes: 14 additions & 0 deletions website_event_external/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading