|
|
@@ -4,9 +4,11 @@ |
|
|
|
from __future__ import unicode_literals |
|
|
|
import frappe, json |
|
|
|
from frappe.model.document import Document |
|
|
|
from frappe.utils.jinja import validate_template |
|
|
|
|
|
|
|
class StandardReply(Document): |
|
|
|
pass |
|
|
|
def validate(self): |
|
|
|
validate_template(self.response) |
|
|
|
|
|
|
|
@frappe.whitelist() |
|
|
|
def get_standard_reply(template_name, doc): |
|
|
|