'Returns the relative path of the row template for this doctype'

def get_web_template(self, suffix=u''):

    module_name = frappe.scrub(self.module)
    doctype = frappe.scrub(self.name)
    template_path = frappe.get_module_path(module_name, u'doctype', doctype, u'templates', ((doctype + suffix) + u'.html'))
    if os.path.exists(template_path):
        return u'{module_name}/doctype/{doctype_name}/templates/{doctype_name}{suffix}.html'.format(module_name=module_name, doctype_name=doctype, suffix=suffix)
    return None
