Skip to content

Commit

Permalink
[ADD][14.0] survey_question_type_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
zamberjo committed Jul 17, 2023
1 parent 9113e2a commit 2b221d3
Show file tree
Hide file tree
Showing 23 changed files with 1,403 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/survey_question_type_binary/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
87 changes: 87 additions & 0 deletions survey_question_type_binary/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
===========================
Survey binary question type
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c1495760f22cf0905fe973d323d7718276834bbd6b7faae5af7c3a48c1ed822f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fsurvey-lightgray.png?logo=github
:target: https://github.com/OCA/survey/tree/14.0/survey_question_type_binary
:alt: OCA/survey
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/survey-14-0/survey-14-0-survey_question_type_binary
: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/survey&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module add binary field question type for attach on survey page.

**Table of contents**

.. contents::
:local:

Configuration
=============

Once installed from the configuration of the questions, in the options, you can
indicate the allowed mime types (Allowed Filemimetypes) and the maximum file
size to upload (Max Filesize).

In addition to the binary option, a Multi: Binary option is supported which has
the same functionality as the single option but allows the user to add more than
one file.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/survey/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/survey/issues/new?body=module:%20survey_question_type_binary%0Aversion:%2014.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
~~~~~~~

* Aures TIC

Contributors
~~~~~~~~~~~~

* Jose Zambudio <[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/survey <https://github.com/OCA/survey/tree/14.0/survey_question_type_binary>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions survey_question_type_binary/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions survey_question_type_binary/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 Jose Zambudio - Aures Tic <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Survey binary question type",
"summary": """
This module add binary field as question type for survey page""",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "Aures TIC, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/survey",
"depends": ["survey"],
"data": [
"security/ir.model.access.csv",
"views/survey_question.xml",
"views/survey_user_input_line.xml",
"templates/survey_template.xml",
],
}
220 changes: 220 additions & 0 deletions survey_question_type_binary/i18n/survey_question_type_binary.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * survey_question_type_binary
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-17 11:58+0000\n"
"PO-Revision-Date: 2023-07-17 11:58+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_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_question_form_inherit_question_type_binary
msgid "<i class=\"fa fa-upload fa-2x\" title=\"upload\"/> Upload binary"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "<strong>Filename: </strong>"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "<strong>MIME Type: </strong>"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "<strong>Size: </strong>"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question__allowed_filemimetypes
msgid "Allowed Filemimetypes"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line__answer_binary_ids
msgid "Answer Binary"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line__answer_type
msgid "Answer Type"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields.selection,name:survey_question_type_binary.selection__survey_question__question_type__binary
#: model:ir.model.fields.selection,name:survey_question_type_binary.selection__survey_user_input_line__answer_type__binary
msgid "Binary"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "Contact image"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__create_uid
msgid "Created by"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__create_date
msgid "Created on"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question__display_name
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input__display_name
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line__display_name
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__display_name
msgid "Display Name"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "Document"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,help:survey_question_type_binary.field_survey_question__allowed_filemimetypes
msgid ""
"File mime types separated by commas (E.g: image/png,image/jpeg). Leave empty"
" to allow any value."
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__filename
msgid "Filename"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question__id
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input__id
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line__id
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__id
msgid "ID"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,help:survey_question_type_binary.field_survey_question__max_filesize
msgid ""
"Indicate maximum file size in bytes (Default 50MB). Leave empty to allow any"
" value."
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__input_line_id
msgid "Input Line"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__is_binary_image
msgid "Is Binary Image"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question____last_update
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input____last_update
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line____last_update
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary____last_update
msgid "Last Modified on"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__write_uid
msgid "Last Updated by"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__write_date
msgid "Last Updated on"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question__max_filesize
msgid "Max Filesize"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields.selection,name:survey_question_type_binary.selection__survey_user_input_line__answer_type__multi_binary
msgid "Multi: Binary"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields.selection,name:survey_question_type_binary.selection__survey_question__question_type__multi_binary
msgid "Multiple: Binary"
msgstr ""

#. module: survey_question_type_binary
#: code:addons/survey_question_type_binary/models/survey_question.py:0
#: code:addons/survey_question_type_binary/models/survey_user_input_line.py:0
#, python-format
msgid "Only files with {} mime types are allowed."
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_question__question_type
msgid "Question Type"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model,name:survey_question_type_binary.model_survey_question
msgid "Survey Question"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model,name:survey_question_type_binary.model_survey_user_input
msgid "Survey User Input"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model,name:survey_question_type_binary.model_survey_user_input_line
msgid "Survey User Input Line"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model,name:survey_question_type_binary.model_survey_user_input_line_binary
msgid "Survey User Input Line Binary"
msgstr ""

#. module: survey_question_type_binary
#: code:addons/survey_question_type_binary/models/survey_user_input_line.py:0
#, python-format
msgid "The answer must be in the right type"
msgstr ""

#. module: survey_question_type_binary
#: code:addons/survey_question_type_binary/models/survey_question.py:0
#: code:addons/survey_question_type_binary/models/survey_user_input_line.py:0
#, python-format
msgid "The file cannot exceed {}MB in size."
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__value_binary
msgid "Value Binary"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__value_binary_size
msgid "Value Binary Size"
msgstr ""

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__value_binary_type
msgid "Value Binary Type"
msgstr ""

#. module: survey_question_type_binary
#: model_terms:ir.ui.view,arch_db:survey_question_type_binary.survey_user_input_line_view_form_inherit_question_type_binary
msgid "bytes"
msgstr ""
4 changes: 4 additions & 0 deletions survey_question_type_binary/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import survey_question
from . import survey_user_input
from . import survey_user_input_line
from . import survey_user_input_line_binary
Loading

0 comments on commit 2b221d3

Please sign in to comment.