mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
merged with master
This commit is contained in:
@@ -79,7 +79,7 @@ erpnext.show_task_gantt = function(parent, project) {
|
||||
$('<button class="btn"><i class="icon icon-plus"></i>\
|
||||
Create a new Task</button>').click(function() {
|
||||
wn.model.with_doctype('Task', function() {
|
||||
var new_name = LocalDB.create('Task');
|
||||
var new_name = wn.model.make_new_doc_and_get_name('Task');
|
||||
if(project)
|
||||
locals.Task[new_name].project = project;
|
||||
wn.set_route('Form', 'Task', new_name);
|
||||
|
||||
@@ -111,7 +111,7 @@ erpnext.module_page.hide_links = function(wrapper) {
|
||||
$(wrapper).find('[href*="List/"]').each(function() {
|
||||
var href = $(this).attr('href');
|
||||
var dt = href.split('/')[1];
|
||||
if(wn.boot.profile.all_read.indexOf(get_label_doctype(dt))==-1) {
|
||||
if(wn.boot.profile.all_read.indexOf(dt)==-1) {
|
||||
replace_link(this);
|
||||
}
|
||||
});
|
||||
@@ -128,7 +128,7 @@ erpnext.module_page.hide_links = function(wrapper) {
|
||||
$(wrapper).find('[href*="Form/"]').each(function() {
|
||||
var href = $(this).attr('href');
|
||||
var dt = href.split('/')[1];
|
||||
if(wn.boot.profile.all_read.indexOf(get_label_doctype(dt))==-1) {
|
||||
if(wn.boot.profile.all_read.indexOf(dt)==-1) {
|
||||
replace_link(this);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user