Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] survey_question_type_binary: Migration to 17.0 #129

Open
wants to merge 10 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ repos:
- --color
- --fix
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
# exclude autogenerated files
Expand Down
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:8ae0b5054b6a94d46e0bd97aa8c46bb0baa2d35408dae4626171e93df92e57bd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/survey-17-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=17.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:%2017.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/17.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
24 changes: 24 additions & 0 deletions survey_question_type_binary/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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": "17.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",
],
"assets": {
"survey.survey_assets": [
"survey_question_type_binary/static/src/js/survey_form.js",
],
},
}
226 changes: 226 additions & 0 deletions survey_question_type_binary/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
# 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"
"PO-Revision-Date: 2024-05-08 09:38+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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"
"X-Generator: Weblate 4.17\n"

#. module: survey_question_type_binary
#. odoo-python
#: code:addons/survey_question_type_binary/models/survey_user_input_line.py:0
#, python-format
msgid "%s File(s)"
msgstr "%s file"

#. 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 "<i class=\"fa fa-upload fa-2x\" title=\"upload\"/> Carica binario"

#. 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 "<strong>Nome file: </strong>"

#. 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 "<strong>Tipo MIME: </strong>"

#. 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 "<strong>Dimensione: </strong>"

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

#. 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 "Risposta binaria"

#. 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 "Tipo risposta"

#. 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 "Binaria"

#. 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 "Immagine contatto"

#. 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 "Creato da"

#. 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 "Creato il"

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. 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 "Documento"

#. 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 ""
"Tipi MIME file separati da virgole (Es. image/png,image/jpeg). Lasciare "
"vuoto per consentire qualsiasi valore."

#. 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 "Nome file"

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

#. 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 ""
"Indica la dimensione file massima in byte (predefinito 50MB). Lasciare vuoto "
"per consentire qualsiasi valore."

#. 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 "Riga inserita"

#. 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 "È immagine binaria"

#. module: survey_question_type_binary
#: model:ir.model.fields,field_description:survey_question_type_binary.field_survey_user_input_line_binary____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. 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 "Ultimo aggiornamento di"

#. 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 "Ultimo aggiornamento il"

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

#. 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 "Multi: binario"

#. 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 "Multiplo: binario"

#. module: survey_question_type_binary
#. odoo-python
#: 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 "Sono consentiti solo file di tipo MIME {}."

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

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

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

#. module: survey_question_type_binary
#: model:ir.model,name:survey_question_type_binary.model_survey_user_input_line
msgid "Survey User Input Line"
msgstr "Riga risposta utente al sondaggio"

#. 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 "Riga risposta binaria utente al sondaggio"

#. module: survey_question_type_binary
#. odoo-python
#: 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 "La risposta deve essere del tipo corretto"

#. module: survey_question_type_binary
#. odoo-python
#: 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 "Il file non può superare i {}MB."

#. 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 "Valore binario"

#. 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 "Dimensione valore binario"

#. 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 "Tipo valore binario"

#. 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 "byte"
Loading
Loading