[customer login] [minor] commonified listing of orders, invoices, shipments, tickets and messages

This commit is contained in:
Anand Doshi
2013-08-30 18:23:50 +05:30
parent c8e39b0965
commit 6c8ef7729f
11 changed files with 252 additions and 144 deletions

View File

@@ -73,17 +73,6 @@ def set_status(name, status):
st.doc.status = status
st.save()
@webnotes.whitelist()
def get_tickets():
tickets = webnotes.conn.sql("""select
name, subject, status
from `tabSupport Ticket`
where raised_by=%s
order by modified desc
limit 20""",
webnotes.session.user, as_dict=1)
return tickets
def get_website_args():
bean = webnotes.bean("Support Ticket", webnotes.form_dict.name)
if bean.doc.raised_by != webnotes.session.user: