Rémi FRANÇOIS
5 years ago
10 changed files with 54 additions and 101 deletions
-
1survey_description/__init__.py
-
5survey_description/__manifest__.py
-
36survey_description/i18n/fr.po
-
32survey_description/i18n/survey_description.pot
-
42survey_description/i18n/survey_details.pot
-
1survey_description/models/__init__.py
-
7survey_description/models/survey_survey.py
-
17survey_description/templates/survey_init.xml
-
2survey_description/views/survey_page.xml
-
12survey_description/views/survey_survey.xml
@ -1 +0,0 @@ |
|||
from . import models |
@ -0,0 +1,32 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * survey_description |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.0+e\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2020-03-25 11:44+0000\n" |
|||
"PO-Revision-Date: 2020-03-25 11:44+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: survey_description |
|||
#: model_terms:ir.ui.view,arch_db:survey_description.survey_survey_form |
|||
msgid "Description" |
|||
msgstr "" |
|||
|
|||
#. module: survey_description |
|||
#: model:ir.model,name:survey_description.model_survey_survey |
|||
msgid "Survey" |
|||
msgstr "" |
|||
|
|||
#. module: survey_description |
|||
#: model_terms:ir.ui.view,arch_db:survey_description.survey_survey_form |
|||
msgid "Thank you page" |
|||
msgstr "" |
|||
|
@ -1,42 +0,0 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * survey_details |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 12.0+e\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2020-03-23 21:22+0000\n" |
|||
"PO-Revision-Date: 2020-03-23 21:22+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: survey_details |
|||
#: model_terms:ir.ui.view,arch_db:survey_details.survey_survey_form |
|||
msgid "Details" |
|||
msgstr "" |
|||
|
|||
#. module: survey_details |
|||
#: model_terms:ir.ui.view,arch_db:survey_details.survey_init |
|||
msgid "Start Survey" |
|||
msgstr "" |
|||
|
|||
#. module: survey_details |
|||
#: model:ir.model.fields,field_description:survey_details.field_survey_survey__button_label |
|||
msgid "Start button label" |
|||
msgstr "" |
|||
|
|||
#. module: survey_details |
|||
#: model:ir.model,name:survey_details.model_survey_survey |
|||
msgid "Survey" |
|||
msgstr "" |
|||
|
|||
#. module: survey_details |
|||
#: model:ir.model.fields,help:survey_details.field_survey_survey__button_label |
|||
msgid "This label will be used in the survey start button. If empty, the label will be \"Start survey\"." |
|||
msgstr "" |
|||
|
@ -1 +0,0 @@ |
|||
from . import survey_survey |
@ -1,7 +0,0 @@ |
|||
from odoo import models, fields |
|||
|
|||
|
|||
class SurveySurvey(models.Model): |
|||
_inherit = 'survey.survey' |
|||
|
|||
button_label = fields.Char(string="Start button label", help="This label will be used in the survey start button. If empty, the label will be \"Start survey\".") |
@ -1,17 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<template id="survey_init" inherit_id="survey.survey_init"> |
|||
<a role="button" position="replace"> |
|||
<a role="button" class="btn btn-primary btn-lg" t-att-href="'/survey/fill/%s/%s' % (slug(survey), token)"> |
|||
<t t-if="survey.button_label"> |
|||
<span t-field="survey.button_label"/> |
|||
</t> |
|||
<t t-else=""> |
|||
Start Survey |
|||
</t> |
|||
</a> |
|||
</a> |
|||
</template> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue