Fixed set_query
diff --git a/erpnext/accounts/doctype/account/account.js b/erpnext/accounts/doctype/account/account.js
index 4b865ed..55dd15e 100644
--- a/erpnext/accounts/doctype/account/account.js
+++ b/erpnext/accounts/doctype/account/account.js
@@ -109,7 +109,7 @@
var dt = doc.master_type || "Warehouse";
return {
doctype: dt,
- query: "accounts.doctype.account.account.get_master_name",
+ query: "erpnext.accounts.doctype.account.account.get_master_name",
filters: {
"master_type": dt,
"company": doc.company
diff --git a/erpnext/accounts/doctype/journal_voucher/journal_voucher.js b/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
index e3bf28b..ff42169 100644
--- a/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
+++ b/erpnext/accounts/doctype/journal_voucher/journal_voucher.js
@@ -56,7 +56,7 @@
frappe.model.validate_missing(jvd, "account");
return {
- query: "accounts.doctype.journal_voucher.journal_voucher.get_against_jv",
+ query: "erpnext.accounts.doctype.journal_voucher.journal_voucher.get_against_jv",
filters: { account: jvd.account }
};
});
diff --git a/erpnext/accounts/report/accounts_payable/accounts_payable.js b/erpnext/accounts/report/accounts_payable/accounts_payable.js
index 18765f5..09fbd3e 100644
--- a/erpnext/accounts/report/accounts_payable/accounts_payable.js
+++ b/erpnext/accounts/report/accounts_payable/accounts_payable.js
@@ -18,7 +18,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
@@ -41,4 +41,4 @@
"default": "Posting Date"
}
]
-}
\ No newline at end of file
+}
diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.js b/erpnext/accounts/report/accounts_receivable/accounts_receivable.js
index 2c0f735..1cf0941 100644
--- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.js
+++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.js
@@ -18,7 +18,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
diff --git a/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.js b/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.js
index 61fe9bb..abeaba8 100644
--- a/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.js
+++ b/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.js
@@ -23,7 +23,7 @@
"options": "Account",
"get_query": function() {
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": [
['Account', 'account_type', 'in', 'Bank, Cash'],
['Account', 'group_or_ledger', '=', 'Ledger'],
diff --git a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.js b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.js
index 3d3b2f5..5316b58 100644
--- a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.js
+++ b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.js
@@ -11,7 +11,7 @@
"reqd": 1,
"get_query": function() {
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": [
['Account', 'account_type', 'in', 'Bank, Cash'],
['Account', 'group_or_ledger', '=', 'Ledger'],
diff --git a/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.js b/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.js
index e2e0287..402f894 100644
--- a/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.js
+++ b/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.js
@@ -30,7 +30,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
diff --git a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.js b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.js
index 09ce2fb..3264da7 100644
--- a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.js
+++ b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.js
@@ -24,7 +24,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
diff --git a/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.js b/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.js
index d9a05c9..b0833b5 100644
--- a/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.js
+++ b/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.js
@@ -29,7 +29,7 @@
options: "Account",
get_query: function() {
return {
- query: "accounts.utils.get_account_list",
+ query: "erpnext.accounts.utils.get_account_list",
filters: {
"report_type": "Balance Sheet",
company: frappe.query_report.filters_by_name.company.get_value()
diff --git a/erpnext/accounts/report/purchase_register/purchase_register.js b/erpnext/accounts/report/purchase_register/purchase_register.js
index b553584..7e999de 100644
--- a/erpnext/accounts/report/purchase_register/purchase_register.js
+++ b/erpnext/accounts/report/purchase_register/purchase_register.js
@@ -24,7 +24,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
diff --git a/erpnext/accounts/report/sales_register/sales_register.js b/erpnext/accounts/report/sales_register/sales_register.js
index 976e753..0cc48a6 100644
--- a/erpnext/accounts/report/sales_register/sales_register.js
+++ b/erpnext/accounts/report/sales_register/sales_register.js
@@ -24,7 +24,7 @@
"get_query": function() {
var company = frappe.query_report.filters_by_name.company.get_value();
return {
- "query": "accounts.utils.get_account_list",
+ "query": "erpnext.accounts.utils.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
diff --git a/erpnext/buying/doctype/quality_inspection/quality_inspection.js b/erpnext/buying/doctype/quality_inspection/quality_inspection.js
index 84dd3cc..5755387 100644
--- a/erpnext/buying/doctype/quality_inspection/quality_inspection.js
+++ b/erpnext/buying/doctype/quality_inspection/quality_inspection.js
@@ -27,7 +27,7 @@
cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
if (doc.purchase_receipt_no) {
return {
- query: "buying.doctype.quality_inspection.quality_inspection.item_query",
+ query: "erpnext.buying.doctype.quality_inspection.quality_inspection.item_query",
filters: {
"from": "Purchase Receipt Item",
"parent": doc.purchase_receipt_no
@@ -35,7 +35,7 @@
}
} else if (doc.delivery_note_no) {
return {
- query: "buying.doctype.quality_inspection.quality_inspection.item_query",
+ query: "erpnext.buying.doctype.quality_inspection.quality_inspection.item_query",
filters: {
"from": "Delivery Note Item",
"parent": doc.delivery_note_no
diff --git a/erpnext/projects/doctype/task/task.js b/erpnext/projects/doctype/task/task.js
index 81eeacd..9001595 100644
--- a/erpnext/projects/doctype/task/task.js
+++ b/erpnext/projects/doctype/task/task.js
@@ -9,7 +9,7 @@
setup: function() {
this.frm.fields_dict.project.get_query = function() {
return {
- query: "projects.doctype.task.task.get_project"
+ query: "erpnext.projects.doctype.task.task.get_project"
}
};
},
diff --git a/erpnext/projects/doctype/time_log_batch/time_log_batch.js b/erpnext/projects/doctype/time_log_batch/time_log_batch.js
index 05e62df..3065f33 100644
--- a/erpnext/projects/doctype/time_log_batch/time_log_batch.js
+++ b/erpnext/projects/doctype/time_log_batch/time_log_batch.js
@@ -7,7 +7,7 @@
cur_frm.set_query("time_log", "time_log_batch_details", function(doc) {
return {
- query: "projects.utils.get_time_log_list",
+ query: "erpnext.projects.utils.get_time_log_list",
filters: {
"billable": 1,
"status": "Submitted"