[FIX] website_event_questions: filter hiding cancelled registration

Before this commit, there was no way in the event question report
to filter out cancelled registration

After this commit, we introduce a filter for it

OPW 2072973

closes odoo/odoo#37032

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
Lucas Perais (lpe)
2019-09-18 07:10:48 +00:00
parent 31ec900bb0
commit 3dd2e7c2ef
@@ -40,6 +40,9 @@
<filter string="Event" name="group_by_event" context="{'group_by': 'event_id'}" />
<filter string="Question" name="group_by_question" context="{'group_by': 'question_id'}"/>
<filter string="Answer" name="group_by_answer" context="{'group_by': 'answer_id'}" />
<filter name="exclude_cancelled"
string="Exclude cancelled registrations"
domain="[('attendee_id.state', '!=', 'cancel')]" />
</group>
</search>
</field>