fix(Timesheet): ignore permissions when updating Task and Project (backport #45168) (#45171)

* 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:
mergify[bot]
2025-01-13 12:08:26 +05:30
committed by GitHub
parent 6bc210d9f4
commit 49ffeccafa

View File

@@ -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: