diff --git a/event_allowed_ceu/README.rst b/event_allowed_ceu/README.rst new file mode 100644 index 00000000..14b79f53 --- /dev/null +++ b/event_allowed_ceu/README.rst @@ -0,0 +1,9 @@ +Event Allowed CEU +================= +This module adds Continuing Education Units field on event. + +.. image:: static/description/ceu_field.png + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) diff --git a/event_allowed_ceu/__init__.py b/event_allowed_ceu/__init__.py new file mode 100644 index 00000000..96b9372f --- /dev/null +++ b/event_allowed_ceu/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/event_allowed_ceu/__manifest__.py b/event_allowed_ceu/__manifest__.py new file mode 100644 index 00000000..cc0d0575 --- /dev/null +++ b/event_allowed_ceu/__manifest__.py @@ -0,0 +1,18 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Event Allowed CEU", + "version": "1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://bit.ly/numigi-com", + "license": "AGPL-3", + "category": "Other", + "depends": ["event"], + "summary": "Add Continuing Education Units field on event.", + "data": [ + "views/event_event_views.xml", + ], + "installable": True, +} diff --git a/event_allowed_ceu/i18n/fr.po b/event_allowed_ceu/i18n/fr.po new file mode 100644 index 00000000..ce5fe262 --- /dev/null +++ b/event_allowed_ceu/i18n/fr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * event_allowed_ceu +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-10-17 06:32+0000\n" +"PO-Revision-Date: 2023-10-17 06:32+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: event_allowed_ceu +#: model:ir.model.fields,field_description:event_allowed_ceu.field_event_event__event_allowed_ceu +#: model_terms:ir.ui.view,arch_db:event_allowed_ceu.view_event_form_ceu_inherited +msgid "Continuing Education Units (CEU)" +msgstr "Unités de formation continue (CEU)" + +#. module: event_allowed_ceu +#: model:ir.model.fields,field_description:event_allowed_ceu.field_event_event__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: event_allowed_ceu +#: model:ir.model,name:event_allowed_ceu.model_event_event +msgid "Event" +msgstr "Événement" + +#. module: event_allowed_ceu +#: model:ir.model.fields,field_description:event_allowed_ceu.field_event_event__id +msgid "ID" +msgstr "" + +#. module: event_allowed_ceu +#: model:ir.model.fields,field_description:event_allowed_ceu.field_event_event____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" \ No newline at end of file diff --git a/event_allowed_ceu/models/__init__.py b/event_allowed_ceu/models/__init__.py new file mode 100644 index 00000000..bdd8e449 --- /dev/null +++ b/event_allowed_ceu/models/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import event_event diff --git a/event_allowed_ceu/models/event_event.py b/event_allowed_ceu/models/event_event.py new file mode 100644 index 00000000..ce773732 --- /dev/null +++ b/event_allowed_ceu/models/event_event.py @@ -0,0 +1,12 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class EventEvent(models.Model): + _inherit = "event.event" + + event_allowed_ceu = fields.Text( + "Continuing Education Units (CEU)" + ) diff --git a/event_allowed_ceu/static/description/ceu_field.png b/event_allowed_ceu/static/description/ceu_field.png new file mode 100644 index 00000000..eb1fd7d9 Binary files /dev/null and b/event_allowed_ceu/static/description/ceu_field.png differ diff --git a/event_allowed_ceu/static/description/icon.png b/event_allowed_ceu/static/description/icon.png new file mode 100644 index 00000000..92a86b10 Binary files /dev/null and b/event_allowed_ceu/static/description/icon.png differ diff --git a/event_allowed_ceu/views/event_event_views.xml b/event_allowed_ceu/views/event_event_views.xml new file mode 100644 index 00000000..f32ef7c6 --- /dev/null +++ b/event_allowed_ceu/views/event_event_views.xml @@ -0,0 +1,14 @@ + + + + event.event.form.ceu.inherited + event.event + + + + + + + + +