summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-02-24 12:41:07 +0000
committerAurélien Warnon <awa@odoo.com>2020-03-31 10:39:05 +0000
commita1d6b6af5dfafab2a424a80c9bdfe9c655be2ead (patch)
tree6bc6e365022d06d9c6c1ca3554c46da4365d7585 /addons
parent0132ab608af2502a6a2f59f3f35ef3ea76472a54 (diff)
[IMP] website_event_questions: correctly show question answers on event form view
This commit adds the display_name to the list of fields so that the view will correctly compute it and store it in the record state to be displayed by the associated m2m_tags widget. Without that small trick the display_name is never computed and the m2m_tags widget shows empty strings. LINKS PR #45497 Task ID 2189529
Diffstat (limited to 'addons')
-rw-r--r--addons/website_event_questions/views/event_views.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_event_questions/views/event_views.xml b/addons/website_event_questions/views/event_views.xml
index 4f854871cdd..6f7814ba59e 100644
--- a/addons/website_event_questions/views/event_views.xml
+++ b/addons/website_event_questions/views/event_views.xml
@@ -21,6 +21,8 @@
<page string="Answers" name="answers">
<field name="answer_ids">
<tree editable="bottom">
+ <!-- 'display_name' is necessary for the many2many_tags to work on the event view -->
+ <field name="display_name" invisible="1" />
<field name="sequence" widget="handle" />
<field name="name"/>
</tree>