-
-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
25 changed files
with
1,753 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
================ | ||
Hr Course Survey | ||
================ | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:9106aa496f0813d33af06a01289e734c8bc3215a3a3967eeffb414c14713b316 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Fhr-lightgray.png?logo=github | ||
:target: https://github.com/OCA/hr/tree/16.0/hr_course_survey | ||
:alt: OCA/hr | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_course_survey | ||
: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/hr&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows you to add a survey to your employee's training courses. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
·Create a Survey: Surveys | ||
|
||
·Create a Course: Employees -> Courses | ||
|
||
·Add the Survey to the Course (Examination Survey field) | ||
|
||
·Create a Training Schedule: Employees -> Courses Schedule | ||
|
||
·Assign attendees to continue | ||
|
||
(If a course is failed, you can select the "retry" option) | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_course_survey%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 | ||
~~~~~~~ | ||
|
||
* Creu Blanca | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Enric Tobella <[email protected]> | ||
* Olga Marco <[email protected]> | ||
|
||
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/hr <https://github.com/OCA/hr/tree/16.0/hr_course_survey>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2021 Creu Blanca | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Hr Course Survey", | ||
"summary": """ | ||
Evaluate a course using a Schedule""", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "Creu Blanca,Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/hr", | ||
"depends": ["hr_course", "survey"], | ||
"data": [ | ||
"data/mail.xml", | ||
"views/hr_course_attendee.xml", | ||
"views/hr_course.xml", | ||
], | ||
"demo": [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="mail_template_user_input_invite" model="mail.template"> | ||
<field name="name">Survey: Invite</field> | ||
<field name="model_id" ref="survey.model_survey_user_input" /> | ||
<field name="subject">Participate to ${object.survey_id.title} survey</field> | ||
<field | ||
name="email_to" | ||
>${(object.partner_id.email_formatted or object.email) |safe}</field> | ||
<field name="body_html" type="html"> | ||
<div style="margin: 0px; padding: 0px; font-size: 13px;"> | ||
<p style="margin: 0px; padding: 0px; font-size: 13px;"> | ||
Dear ${object.partner_id.name or 'participant'}<br /><br /> | ||
% if object.survey_id.certificate: | ||
You have been invited to take a new certification. | ||
% else: | ||
We are conducting a survey and your response would be appreciated. | ||
% endif | ||
<div style="margin: 16px 0px 16px 0px;"> | ||
<a | ||
href="${('%s?answer_token=%s' % (object.survey_id.public_url, object.access_token)) | safe}" | ||
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;" | ||
> | ||
% if object.survey_id.certificate: | ||
Start Certification | ||
% else: | ||
Start Survey | ||
% endif | ||
</a> | ||
</div> | ||
% if object.deadline: | ||
Please answer the survey for ${format_date(object.deadline)}.<br /><br /> | ||
% endif | ||
Thank you for your participation. | ||
</p> | ||
</div> | ||
</field> | ||
<field name="lang">${object.partner_id.lang}</field> | ||
<field name="auto_delete" eval="True" /> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_course_survey | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: ca_ES\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
|
||
#. module: hr_course_survey | ||
#: model:mail.template,body_html:hr_course_survey.mail_template_user_input_invite | ||
msgid "" | ||
"<div style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n" | ||
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n" | ||
" Dear ${object.partner_id.name or 'participant'}<br/><br/>\n" | ||
" % if object.survey_id.certificate:\n" | ||
" You have been invited to take a new certification.\n" | ||
" % else:\n" | ||
" We are conducting a survey and your response would be " | ||
"appreciated.\n" | ||
" % endif\n" | ||
" <div style=\"margin: 16px 0px 16px 0px;\">\n" | ||
" <a href=\"${('%s?answer_token=%s' % (object." | ||
"survey_id.public_url, object.access_token)) | safe}\" style=\"background-" | ||
"color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: " | ||
"#fff; border-radius: 5px; font-size:13px;\">\n" | ||
" % if object.survey_id.certificate:\n" | ||
" Start Certification\n" | ||
" % else:\n" | ||
" Start Survey\n" | ||
" % endif\n" | ||
" </a>\n" | ||
" </div>\n" | ||
" % if object.deadline:\n" | ||
" Please answer the survey for ${format_date(object.deadline)}.<br/" | ||
"><br/>\n" | ||
" % endif\n" | ||
" Thank you for your participation.\n" | ||
" </p>\n" | ||
" </div>\n" | ||
" " | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model,name:hr_course_survey.model_hr_course | ||
msgid "Course" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model,name:hr_course_survey.model_hr_course_attendee | ||
msgid "Course Attendee" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model,name:hr_course_survey.model_hr_course_schedule | ||
msgid "Course Schedule" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course__display_name | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_attendee__display_name | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_schedule__display_name | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_survey_user_input__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course__examination_survey_id | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_schedule__examination_survey_id | ||
msgid "Examination Survey" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_survey_user_input__hr_course_attendee_ids | ||
msgid "Hr Course Attendee" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course__id | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_attendee__id | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_schedule__id | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_survey_user_input__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course____last_update | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_attendee____last_update | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_schedule____last_update | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_survey_user_input____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:mail.template,subject:hr_course_survey.mail_template_user_input_invite | ||
msgid "Participate to ${object.survey_id.title} survey" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model_terms:ir.ui.view,arch_db:hr_course_survey.hr_course_attendee_tree_view | ||
msgid "Retry" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model.fields,field_description:hr_course_survey.field_hr_course_attendee__survey_answer_id | ||
msgid "Survey Answer" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: model:ir.model,name:hr_course_survey.model_survey_user_input | ||
msgid "Survey User Input" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: code:addons/hr_course_survey/models/hr_course_attendee.py:0 | ||
#, python-format | ||
msgid "Survey cannot be sent because the previous survey has not been answered" | ||
msgstr "" | ||
|
||
#. module: hr_course_survey | ||
#: code:addons/hr_course_survey/models/hr_course_attendee.py:0 | ||
#, python-format | ||
msgid "Survey cannot be sent if the user has not failed" | ||
msgstr "" |
Oops, something went wrong.