Skip to content

Commit

Permalink
TA#57414 [ADD] event_allowed_ceu : new module (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe authored Oct 17, 2023
1 parent bc8bf76 commit 07e3f60
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addons/event_allowed_ceu/README.rst
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions addons/event_allowed_ceu/__init__.py
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions addons/event_allowed_ceu/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
42 changes: 42 additions & 0 deletions addons/event_allowed_ceu/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions addons/event_allowed_ceu/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions addons/event_allowed_ceu/models/event_event.py
Original file line number Diff line number Diff line change
@@ -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)"
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions addons/event_allowed_ceu/views/event_event_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record model="ir.ui.view" id="view_event_form_ceu_inherited">
<field name="name"> event.event.form.ceu.inherited</field>
<field name="model">event.event</field>
<field name="inherit_id" ref="event.view_event_form" />
<field name="arch" type="xml">
<field name="auto_confirm" position="after">
<field name="event_allowed_ceu" string="Continuing Education Units (CEU)"/>
</field>
</field>
</record>

</odoo>

0 comments on commit 07e3f60

Please sign in to comment.