* fix(Timesheet): ignore permissions when updating Task and Project (#45168)
(cherry picked from commit 9e760e54a5)
# Conflicts:
# erpnext/projects/doctype/timesheet/timesheet.py
* chore: resolve conflicts
---------
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
@@ -120,7 +120,7 @@ class Timesheet(Document):
|
||||
if data.task and data.task not in tasks:
|
||||
task = frappe.get_doc("Task", data.task)
|
||||
task.update_time_and_costing()
|
||||
task.save()
|
||||
task.save(ignore_permissions=True)
|
||||
tasks.append(data.task)
|
||||
|
||||
elif data.project and data.project not in projects:
|
||||
|
||||
Reference in New Issue
Block a user