[ADD] survey_extra_fields, survey_base : copy modules from v16

This commit is contained in:
2026-06-10 15:38:57 +02:00
parent aff1a6caae
commit 8f235646ef
21 changed files with 1012 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class SurveyUserInputLine(models.Model):
_inherit = "survey.user_input.line"
answer_type = fields.Selection(
selection_add=[("file", "File")]
)
def _compute_display_name(self):
super()._compute_display_name()
for line in self:
if line.answer_type == "file" and line.value_file_fname:
line.display_name = line.value_file_fname