fix: apply permission while selecting projects (#25765)

This commit is contained in:
Mohammad Hasnain Mohsin Rajan 2021-05-20 17:20:05 +05:30 committed by GitHub
parent 8bc90ffcf5
commit 21e662f678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,6 @@ frappe.provide("erpnext.projects");
frappe.ui.form.on("Task", {
setup: function (frm) {
frm.set_query("project", function () {
return {
query: "erpnext.projects.doctype.task.task.get_project"
}
});
frm.make_methods = {
'Timesheet': () => frappe.model.open_mapped_doc({
method: 'erpnext.projects.doctype.task.task.make_timesheet',