Merge branch 'responsive' of github.com:webnotes/erpnext into responsive
This commit is contained in:
commit
a0af48f101
@ -18,8 +18,7 @@ wn.provide("erpnext.support");
|
||||
// TODO commonify this code
|
||||
erpnext.support.CustomerIssue = wn.ui.form.Controller.extend({
|
||||
refresh: function() {
|
||||
if(cur_frm.doc.docstatus==1 && (cur_frm.doc.status=='Open' ||
|
||||
cur_frm.doc.status == 'Work In Progress')) {
|
||||
if((cur_frm.doc.status=='Open' || cur_frm.doc.status == 'Work In Progress')) {
|
||||
cur_frm.add_custom_button('Make Maintenance Visit', this.make_maintenance_visit)
|
||||
}
|
||||
},
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
"creation": "2013-01-10 16:34:30",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-07-05 14:34:37",
|
||||
"modified": "2013-07-10 13:13:27",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "harshada@webnotestech.com"
|
||||
},
|
||||
@ -10,7 +10,7 @@
|
||||
"autoname": "naming_series:",
|
||||
"doctype": "DocType",
|
||||
"icon": "icon-bug",
|
||||
"is_submittable": 1,
|
||||
"is_submittable": 0,
|
||||
"module": "Support",
|
||||
"name": "__common__",
|
||||
"search_fields": "status,customer,customer_name,allocated_to,allocated_on, territory"
|
||||
@ -24,6 +24,8 @@
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"amend": 0,
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"doctype": "DocPerm",
|
||||
"name": "__common__",
|
||||
@ -33,6 +35,8 @@
|
||||
"permlevel": 0,
|
||||
"read": 1,
|
||||
"report": 1,
|
||||
"role": "Maintenance User",
|
||||
"submit": 0,
|
||||
"write": 1
|
||||
},
|
||||
{
|
||||
@ -412,28 +416,6 @@
|
||||
"width": "150px"
|
||||
},
|
||||
{
|
||||
"amend": 1,
|
||||
"cancel": 1,
|
||||
"doctype": "DocPerm",
|
||||
"role": "System Manager",
|
||||
"submit": 1
|
||||
},
|
||||
{
|
||||
"amend": 1,
|
||||
"cancel": 1,
|
||||
"doctype": "DocPerm",
|
||||
"role": "Maintenance Manager",
|
||||
"submit": 1
|
||||
},
|
||||
{
|
||||
"amend": 1,
|
||||
"cancel": 1,
|
||||
"doctype": "DocPerm",
|
||||
"role": "Maintenance User",
|
||||
"submit": 1
|
||||
},
|
||||
{
|
||||
"doctype": "DocPerm",
|
||||
"role": "Guest"
|
||||
"doctype": "DocPerm"
|
||||
}
|
||||
]
|
@ -37,7 +37,6 @@ erpnext.support.MaintenanceVisit = wn.ui.form.Controller.extend({
|
||||
method: "support.doctype.customer_issue.customer_issue.make_maintenance_visit",
|
||||
source_doctype: "Customer Issue",
|
||||
get_query_filters: {
|
||||
docstatus: 1,
|
||||
status: ["in", "Open, Work in Progress"],
|
||||
customer: cur_frm.doc.customer || undefined,
|
||||
company: cur_frm.doc.company
|
||||
|
Loading…
x
Reference in New Issue
Block a user