When notification type is set as sms we need to check whether the template which is referenced is coming from a correct model or not. Applying this commit will fix this issue. sentry-4195133685 closes odoo/odoo#125831 X-original-commit: 745bcab5ee524ae1c42e5773a86b15ef3a7019d3 Related: odoo/enterprise#42882 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Saurabh Choraria (sauc) <sauc@odoo.com>