queries to server side
diff --git a/accounts/doctype/sales_invoice/sales_invoice.js b/accounts/doctype/sales_invoice/sales_invoice.js
index 421630b..70bf03b 100644
--- a/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/accounts/doctype/sales_invoice/sales_invoice.js
@@ -284,7 +284,6 @@
// Write off cost center
//-----------------------
cur_frm.fields_dict.write_off_cost_center.get_query = function(doc) {
-
return{
filters:{
'group_or_ledger': 'Ledger',
@@ -350,7 +349,7 @@
cur_frm.fields_dict["entries"].grid.get_field("cost_center").get_query = function(doc) {
return {
filters: {
- 'company_name': doc.company,
+ 'company': doc.company,
'group_or_ledger': 'Ledger'
}
}
diff --git a/manufacturing/doctype/production_order/production_order.js b/manufacturing/doctype/production_order/production_order.js
index c3a45e2..12f9490 100644
--- a/manufacturing/doctype/production_order/production_order.js
+++ b/manufacturing/doctype/production_order/production_order.js
@@ -110,7 +110,9 @@
cur_frm.fields_dict['project_name'].get_query = function(doc, dt, dn) {
return{
- filters:['Project', 'status', 'not in', 'Completed, Cancelled']
+ filters:[
+ ['Project', 'status', 'not in', 'Completed, Cancelled']
+ ]
}
}
diff --git a/patches/patch_list.py b/patches/patch_list.py
index 48e521d..114c6e0 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -20,6 +20,8 @@
"execute:webnotes.reload_doc('core', 'doctype', 'docperm') # 2013-04-07",
"execute:webnotes.reload_doc('core', 'doctype', 'report')",
"execute:webnotes.reload_doc('core', 'doctype', 'doctype') # 2013-07-08",
+ "execute:webnotes.reload_doc('core', 'doctype', 'page') # 2013-06-24",
+ "patches.mar_2012.so_rv_mapper_fix",
"patches.mar_2012.clean_property_setter",
"patches.april_2012.naming_series_patch",
"patches.mar_2012.cleanup_control_panel",