Before this commit, we executed the request even when creating a new badge. And it thrown a traceback. After this commit, we return default values before executing the request if this is a new badge. task-2312878 closes odoo/odoo#60441 X-original-commit: 85995b7a4f0544779f3de537f0e6024820abbd5d Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>