Skip to content

Commit ede47cc

Browse files
committed
Merge PR #176 into 18.0
Signed-off-by etobella
2 parents 15a049d + f551082 commit ede47cc

File tree

17 files changed

+823
-0
lines changed

17 files changed

+823
-0
lines changed

survey_xlsx/README.rst

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
===========
2+
Survey XLSX
3+
===========
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:0647ba4a4a0c3a3dc8f4e7b281d9bc6482d39efc59b2da832241080c29d611ad
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsurvey-lightgray.png?logo=github
20+
:target: https://github.com/OCA/survey/tree/18.0/survey_xlsx
21+
:alt: OCA/survey
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/survey-18-0/survey-18-0-survey_xlsx
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/survey&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows to print a XLSX report with the survey results.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Bug Tracker
39+
===========
40+
41+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/survey/issues>`_.
42+
In case of trouble, please check there if your issue has already been reported.
43+
If you spotted it first, help us to smash it by providing a detailed and welcomed
44+
`feedback <https://github.com/OCA/survey/issues/new?body=module:%20survey_xlsx%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45+
46+
Do not contact contributors directly about support or help with technical issues.
47+
48+
Credits
49+
=======
50+
51+
Authors
52+
-------
53+
54+
* Creu Blanca
55+
56+
Contributors
57+
------------
58+
59+
- Olga Marco <olga.marco@creublanca.es>
60+
61+
Maintainers
62+
-----------
63+
64+
This module is maintained by the OCA.
65+
66+
.. image:: https://odoo-community.org/logo.png
67+
:alt: Odoo Community Association
68+
:target: https://odoo-community.org
69+
70+
OCA, or the Odoo Community Association, is a nonprofit organization whose
71+
mission is to support the collaborative development of Odoo features and
72+
promote its widespread use.
73+
74+
This module is part of the `OCA/survey <https://github.com/OCA/survey/tree/18.0/survey_xlsx>`_ project on GitHub.
75+
76+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

survey_xlsx/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import report
2+
from . import models

survey_xlsx/__manifest__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2022 CreuBlanca
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Survey XLSX",
6+
"summary": """
7+
XLSX Report to show the survey results""",
8+
"version": "18.0.1.0.0",
9+
"license": "AGPL-3",
10+
"installable": True,
11+
"application": False,
12+
"author": "Creu Blanca, Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/survey",
14+
"depends": ["survey", "report_xlsx"],
15+
"data": ["report/report_survey_xlsx.xml"],
16+
}

survey_xlsx/i18n/it.po

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * survey_xlsx
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-10-29 06:42+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: survey_xlsx
20+
#. odoo-python
21+
#: code:addons/survey_xlsx/report/report_survey_xlsx.py:0
22+
#, python-format
23+
msgid "Created on"
24+
msgstr "Creato il"
25+
26+
#. module: survey_xlsx
27+
#. odoo-python
28+
#: code:addons/survey_xlsx/report/report_survey_xlsx.py:0
29+
#, python-format
30+
msgid "Partner"
31+
msgstr "Partner"
32+
33+
#. module: survey_xlsx
34+
#: model:ir.model,name:survey_xlsx.model_survey_user_input_line
35+
msgid "Survey User Input Line"
36+
msgstr "Riga risposta utente al sondaggio"
37+
38+
#. module: survey_xlsx
39+
#: model:ir.actions.report,name:survey_xlsx.report_survey_xlsx
40+
msgid "XLSX Report Survey"
41+
msgstr "Resoconto sondaggio XLSX"
42+
43+
#. module: survey_xlsx
44+
#: model:ir.model,name:survey_xlsx.model_report_survey_xlsx
45+
msgid "XLSX Report to show all the results for the survey"
46+
msgstr "Resoconto XLSX per visualizzare tutti i risultati del sondaggio"
47+
48+
#~ msgid "Display Name"
49+
#~ msgstr "Nome visualizzato"
50+
51+
#~ msgid "ID"
52+
#~ msgstr "ID"
53+
54+
#~ msgid "Last Modified on"
55+
#~ msgstr "Ultima modifica il"

survey_xlsx/i18n/survey_xlsx.pot

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * survey_xlsx
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: survey_xlsx
17+
#. odoo-python
18+
#: code:addons/survey_xlsx/report/report_survey_xlsx.py:0
19+
#, python-format
20+
msgid "Created on"
21+
msgstr ""
22+
23+
#. module: survey_xlsx
24+
#. odoo-python
25+
#: code:addons/survey_xlsx/report/report_survey_xlsx.py:0
26+
#, python-format
27+
msgid "Partner"
28+
msgstr ""
29+
30+
#. module: survey_xlsx
31+
#: model:ir.model,name:survey_xlsx.model_survey_user_input_line
32+
msgid "Survey User Input Line"
33+
msgstr ""
34+
35+
#. module: survey_xlsx
36+
#: model:ir.actions.report,name:survey_xlsx.report_survey_xlsx
37+
msgid "XLSX Report Survey"
38+
msgstr ""
39+
40+
#. module: survey_xlsx
41+
#: model:ir.model,name:survey_xlsx.model_report_survey_xlsx
42+
msgid "XLSX Report to show all the results for the survey"
43+
msgstr ""

survey_xlsx/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import survey_user_input_line
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2022 CreuBlanca
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
from odoo import models
4+
5+
6+
class SurveyUserInputLine(models.Model):
7+
_inherit = "survey.user_input.line"
8+
9+
def _get_xlsx_value(self):
10+
if self.answer_type == "suggestion":
11+
return self.suggested_answer_id.value
12+
if self.answer_type == "date":
13+
return self.value_date.isoformat()
14+
return self[f"value_{self.answer_type}"]

survey_xlsx/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

survey_xlsx/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Olga Marco \<<olga.marco@creublanca.es>\>

survey_xlsx/readme/DESCRIPTION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows to print a XLSX report with the survey results.

0 commit comments

Comments
 (0)