Skip to content

Commit

Permalink
[IMP] muskathlon: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Feb 12, 2024
1 parent 39d0cee commit 5b2c9ff
Show file tree
Hide file tree
Showing 82 changed files with 13,274 additions and 54 deletions.
48 changes: 48 additions & 0 deletions muskathlon/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Muskathlon Switzerland
======================

Adds a website portal for Muskathlon Events :
- list of events
- event page with participants
- donation
- registration
- runner portal

Reports for sending information to 4M:
- list with useful data about the muskathlon event
- bar graph amount by ambassador
- fields format for a specific csv export

Installation
============
The module depends on OCA/website-cms repository.

Configuration
=============
- Specify who will be notified for new muskathlon registrations in Staff Notification Settings.
- Enter email address of Muskathlon doctor in system parameters

Todo / Improvements
===================
- Better validate input fields in forms (add validation methods)
- See if Postfinance payment can be done inside the modal
- Make Muskathlon website page translatable again

Credits
=======

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

* Sebastien Toth <[email protected]>
* Nicolas Badoux
* Samuel Fringeli
* Emanuel Cino <[email protected]>

Maintainer
----------

This module is maintained by `Compassion Switzerland <https://www.compassion.ch>`.
13 changes: 13 additions & 0 deletions muskathlon/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
##############################################################################
#
# Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
# @author: Sebastien Toth <[email protected]>
#
# The licence is in the file __manifest__.py
#
##############################################################################

from . import models
from . import reports
from . import controllers
from . import forms
80 changes: 80 additions & 0 deletions muskathlon/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
##############################################################################
#
# ______ Releasing children from poverty _
# / ____/___ ____ ___ ____ ____ ___________(_)___ ____
# / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \
# / /___/ /_/ / / / / / / /_/ / /_/ (__ |__ ) / /_/ / / / /
# \____/\____/_/ /_/ /_/ .___/\__,_/____/____/_/\____/_/ /_/
# /_/
# in Jesus' name
#
# Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
# @author: Sebastien Toth <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

# pylint: disable=C8101
{
"name": "Muskathlon",
"version": "12.0.1.0.3",
"category": "Reports",
"author": "Compassion CH",
"license": "AGPL-3",
"website": "http://www.compassion.ch",
"data": [
"security/ir.model.access.csv",
"security/access_rules.xml",
"data/default_sports.xml",
"data/ir_cron.xml",
"data/res_users.xml",
"data/survey_muskathlon_medical_infos.xml",
"data/product.xml",
"data/event_type.xml",
"data/event_registration_stage.xml",
"data/event_registration_task.xml",
"data/mail_template.xml",
"data/order_material_mail_template.xml",
"data/queue_job.xml",
"reports/muskathlon_view.xml",
"views/event_compassion_view.xml",
"views/partner_compassion_view.xml",
"views/recurring_contracts_view.xml",
"views/muskathlon_registrations.xml",
"views/notification_settings_view.xml",
"views/payment_transaction_view.xml",
"views/advocate_details.xml",
"templates/muskathlon_details.xml",
"templates/muskathlon_my_details.xml",
"templates/muskathlon_my_home.xml",
"templates/muskathlon_participant_details.xml",
"templates/muskathlon_registration_form.xml",
"templates/muskathlon_views.xml",
"templates/muskathlon_order_material.xml",
"templates/my_account_muskathlon.xml",
"templates/assets.xml",
],
"depends": [
"website_event_compassion", # compassion-switzerland
"survey_phone", # compassion-modules
"partner_compassion", # compassion-switzerland
],
"external_dependencies": {
"python": ["magic"],
},
"demo": [],
"installable": True,
"auto_install": False,
}
10 changes: 10 additions & 0 deletions muskathlon/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
##############################################################################
#
# Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
# @author: Sebastien Toth <[email protected]>
#
# The licence is in the file __manifest__.py
#
##############################################################################

from . import main
Loading

0 comments on commit 5b2c9ff

Please sign in to comment.