Files
odoo_source/addons/survey/models
Florian CharlierandVivek Pathak e41b32f40b [FIX] survey: compute matrix answers display_name too
We here fix the `SurveyQuestionAnswer._compute_display_name`
method introduced in 55fa52be.

`survey.question.answers` used as matrix rows and columns
require different treatment as they are not used in triggers
but are both shown on the `survey.user.input.line` views,
where the display shouldn't change (nor cause a crash).

It also doesn't make much sense to create answers outside the
context of a question, so we remove the button that already
wasn't shown on the tree view.

As users may not fully upgrade their views or may wish to customize,
we add a fallback question title in `_compute_display_name`too.

Task-3495142

closes odoo/odoo#135853

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Vivek Pathak <vivp@odoo.com>
2023-09-22 15:06:04 +00:00
..
…