mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix in newsletter
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
cur_frm.cscript.refresh = function(doc) {
|
cur_frm.cscript.refresh = function(doc) {
|
||||||
erpnext.hide_naming_series();
|
erpnext.hide_naming_series();
|
||||||
if(!doc.__islocal && !cint(doc.email_sent) && !doc.__unsaved
|
if(!doc.__islocal && !cint(doc.email_sent) && !doc.__unsaved
|
||||||
&& inList(wn.boot.can_write, doc.doctype)) {
|
&& inList(wn.boot.profile.can_write, doc.doctype)) {
|
||||||
cur_frm.add_custom_button('Send', function() {
|
cur_frm.add_custom_button('Send', function() {
|
||||||
$c_obj(make_doclist(doc.doctype, doc.name), 'send_emails', '', function(r) {
|
$c_obj(make_doclist(doc.doctype, doc.name), 'send_emails', '', function(r) {
|
||||||
cur_frm.refresh();
|
cur_frm.refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user