[FIX] event: print registrations without name

Before this commit, trying to print a registration without a name
specified (not required), was failing

Fixes odoo/odoo#38564

Replace and closes odoo/odoo#38582
Courtesy of Swapnesh Shah

closes odoo/odoo#38821

X-original-commit: a21a81e98c569098d254781318b0030f30b02181
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2019-10-15 15:17:17 +00:00
committed by fw-bot
parent 73b18b30b5
commit a0cd964c55
+1 -1
View File
@@ -25,7 +25,7 @@
name="event.event_registration_report_template_badge"
file="event.event_registration_report_template_badge"
paperformat="event.paperformat_euro_lowmargin"
print_report_name="'Registration Event - %s' % (object.name).replace('/','')"
print_report_name="'Registration Event - %s' % (object.name or 'Attendee').replace('/','')"
/>
<report