[fix] Sales Order - get_query fix
This commit is contained in:
parent
361eca4cae
commit
c6e4b5978d
@ -59,9 +59,15 @@ cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
||||
}
|
||||
|
||||
cur_frm.fields_dict['sales_order'].get_query = function(doc) {
|
||||
var filters = {
|
||||
'project_name': ["in", doc.__islocal ? [""] : [doc.name, ""]]
|
||||
};
|
||||
|
||||
if (doc.customer) {
|
||||
filters["customer"] = doc.customer;
|
||||
}
|
||||
|
||||
return {
|
||||
filters:{
|
||||
'project_name': doc.name
|
||||
}
|
||||
filters: filters
|
||||
}
|
||||
}
|
||||
|
@ -364,7 +364,7 @@
|
||||
"in_filter": 1,
|
||||
"in_list_view": 0,
|
||||
"label": "Delivery Date",
|
||||
"no_copy": 0,
|
||||
"no_copy": 1,
|
||||
"oldfieldname": "delivery_date",
|
||||
"oldfieldtype": "Date",
|
||||
"permlevel": 0,
|
||||
@ -2553,7 +2553,7 @@
|
||||
"is_submittable": 1,
|
||||
"issingle": 0,
|
||||
"istable": 0,
|
||||
"modified": "2015-09-23 09:19:38.778717",
|
||||
"modified": "2015-09-23 10:19:38.778717",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Sales Order",
|
||||
|
Loading…
x
Reference in New Issue
Block a user