[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

@@ -106,14 +106,24 @@
},
"orders": {
"no_cache": true,
"template": "app/website/templates/pages/transaction_list",
"template": "app/website/templates/pages/sales_transactions",
"args_method": "website.helpers.transaction.order_list_args"
},
"invoices": {
"no_cache": true,
"template": "app/website/templates/pages/transaction_list",
"template": "app/website/templates/pages/sales_transactions",
"args_method": "website.helpers.transaction.invoice_list_args"
},
"shipments": {
"no_cache": true,
"template": "app/website/templates/pages/sales_transactions",
"args_method": "website.helpers.transaction.shipment_list_args"
},
"messages": {
"no_cache": true,
"template": "app/website/templates/pages/messages",
"args_method": "website.helpers.transaction.message_list_args"
},
"product_search": {
"template": "app/website/templates/pages/product_search"
},
@@ -123,7 +133,8 @@
"args_method": "support.doctype.support_ticket.support_ticket.get_website_args"
},
"tickets": {
"template": "app/website/templates/pages/tickets"
"template": "app/website/templates/pages/tickets",
"args_method": "website.helpers.transaction.ticket_list_args"
},
"address": {
"no_cache": true,