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>