Rushabh Mehta | 949496c | 2012-01-25 18:48:46 +0530 | [diff] [blame] | 1 | import json, webnotes |
2 | |||||
3 | def send(args): | ||||
4 | """create support ticket""" | ||||
5 | args = json.loads(args) | ||||
6 | |||||
7 | from webnotes.model.doc import Document | ||||
8 | d = Document('Support Ticket') | ||||
9 | d.raised_by = args['email'] | ||||
10 | d.description = 'From: ' + args['name'] + '\n\n' + args['message'] | ||||
11 | d.subject = 'Website Query' | ||||
12 | d.status = 'Open' | ||||
13 | d.owner = 'Guest' | ||||
14 | d.save(1) | ||||
15 | webnotes.msgprint("Thank you for your query. We will respond as soon as we can.") |