This commit clean-ups the code for model `sms.template.preview` which mainly includes the following changes : * remove 'res_id' field and use only the reference field instead; * remove inheritance from `sms.template` as we only need a body field computed based on record and template; * convert onchange of lang / record to compute field for body; * fix 'No Records' warning which previously appeared even if there were records to be previewed (by adding compute field 'no_records'); LINKS TaskID 2180132 Community PR odoo/odoo#44104 Upgrade PR odoo/upgrade#763 Related: odoo/upgrade#763 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>