Like the mass_mailing app we want to raise an error in case there is a syntax error with jinja when we test the mailing and if there is at least one record in the mailing model. PR odoo/odoo#55696 Task ID-2312442 X-original-commit: 7370d573ae91cf442d045aec2b49332061f6c0ee