This commit is contained in:
Anand Doshi 2014-04-02 16:37:35 +05:30
parent 63dfe3d3b3
commit 943e614810
2 changed files with 1 additions and 3 deletions

View File

@ -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'))

View File

@ -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);
}