Skip to content

18.0 mig survey question type binary#232

Open
layadelcarmen wants to merge 14 commits into
OCA:18.0from
layadelcarmen:18.0-mig-survey_question_type_binary
Open

18.0 mig survey question type binary#232
layadelcarmen wants to merge 14 commits into
OCA:18.0from
layadelcarmen:18.0-mig-survey_question_type_binary

Conversation

@layadelcarmen

Copy link
Copy Markdown

No description provided.

Jose Zambudio and others added 13 commits June 1, 2026 12:12
Issue: no answer was created if question not filled. If filled is was marked as Skipped
- Create a Skipped answer when the binary question is not filled
- If filled, put the file name is the Answer or the number of files in case of binary_multi
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: survey-16.0/survey-16.0-survey_question_type_binary
Translate-URL: https://translation.odoo-community.org/projects/survey-16-0/survey-16-0-survey_question_type_binary/
Currently translated at 100.0% (38 of 38 strings)

Translation: survey-16.0/survey-16.0-survey_question_type_binary
Translate-URL: https://translation.odoo-community.org/projects/survey-16-0/survey-16-0-survey_question_type_binary/it/
Backport of OCA#216 (19.0 migration) adapted for 18.0:
- JS rewritten for publicWidget (Odoo 18 still uses legacy widget system)
- self.env._() translation API, Command.create(), _validate_binary convention
- Replace deprecated get_module_resource with file_path in tests
@OCA-git-bot OCA-git-bot added series:18.0 mod:survey_question_type_binary Module survey_question_type_binary labels Jun 17, 2026
- Add tests 05-11 covering validate_question super() path, _save_lines
  non-binary and empty-answer paths, _check_answer_type_skipped,
  _check_binary_answer filesize/mimetype errors, and _compute_display_name
- Simplify _check_answer_type_skipped: remove dead `if field_name and`
  guard (field_name is always "answer_binary_ids")
- Simplify _get_line_answer_values: remove dead isinstance check since
  answer is always a single dict when called from _save_line_simple_answer
@layadelcarmen

Copy link
Copy Markdown
Author

@benbrich could you please review this PR?

@sergiocorato sergiocorato left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commits do not respect the migration guidelines: there must be a commit for pre-commit ([IMP] survey_question_type_binary: pre-commit auto fixes) and a commit for the migration ([MIG] survey_question_type_binary: Migration to 18.0) (created automatically by oca-port if you use it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:survey_question_type_binary Module survey_question_type_binary series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants