From 943e6148103d482fa97b83849b97bc5a8178ef05 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 2 Apr 2014 16:37:35 +0530 Subject: [PATCH] frappe/frappe#478 --- .../setup/doctype/notification_control/notification_control.py | 2 -- erpnext/stock/doctype/stock_entry/stock_entry.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/setup/doctype/notification_control/notification_control.py b/erpnext/setup/doctype/notification_control/notification_control.py index 8594856a08..87674ecd11 100644 --- a/erpnext/setup/doctype/notification_control/notification_control.py +++ b/erpnext/setup/doctype/notification_control/notification_control.py @@ -10,8 +10,6 @@ from frappe import msgprint from frappe.model.document import Document class NotificationControl(Document): - - def get_message(self, arg): fn = arg.lower().replace(' ', '_') + '_message' v = frappe.db.sql("select value from tabSingles where field=%s and doctype=%s", (fn, 'Notification Control')) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index 6ee3922327..0ae7e18387 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -350,7 +350,7 @@ cur_frm.cscript.item_code = function(doc, cdt, cdn) { 'cost_center' : d.cost_center, 'company' : cur_frm.doc.company }; - return get_server_fields('get_item_details', JSON.stringify(args), + return get_server_fields('get_item_details', {arg: JSON.stringify(args)}, 'mtn_details', doc, cdt, cdn, 1); }