This commit is contained in:
parent
63dfe3d3b3
commit
943e614810
@ -10,8 +10,6 @@ from frappe import msgprint
|
|||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class NotificationControl(Document):
|
class NotificationControl(Document):
|
||||||
|
|
||||||
|
|
||||||
def get_message(self, arg):
|
def get_message(self, arg):
|
||||||
fn = arg.lower().replace(' ', '_') + '_message'
|
fn = arg.lower().replace(' ', '_') + '_message'
|
||||||
v = frappe.db.sql("select value from tabSingles where field=%s and doctype=%s", (fn, 'Notification Control'))
|
v = frappe.db.sql("select value from tabSingles where field=%s and doctype=%s", (fn, 'Notification Control'))
|
||||||
|
@ -350,7 +350,7 @@ cur_frm.cscript.item_code = function(doc, cdt, cdn) {
|
|||||||
'cost_center' : d.cost_center,
|
'cost_center' : d.cost_center,
|
||||||
'company' : cur_frm.doc.company
|
'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);
|
'mtn_details', doc, cdt, cdn, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user