In ERPNext Projects module assignments are automatically removes after completion of the task and in activity (bottom of the task page) it is showing that the user has removed the assignment. how to resolve this issue? I want to show the assignment even after the tasks get completed.
Jeel
July 29, 2024, 11:13am
2
@sapnapokhriyal288 you have to override task class in python and remove close_all_assignment function line 144
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import json
import frappe
from frappe import _, throw
from frappe.desk.form.assign_to import clear, close_all_assignments
from frappe.model.mapper import get_mapped_doc
from frappe.utils import add_days, add_to_date, cstr, date_diff, flt, get_link_to_form, getdate, today
from frappe.utils.data import format_date
from frappe.utils.nestedset import NestedSet
class CircularReferenceError(frappe.ValidationError):
pass
class Task(NestedSet):
This file has been truncated. show original
Any other way without coding?
Jeel
July 30, 2024, 11:17am
4
Set the task permission to read only so that the users will be able to see the task only.
Tried, did not worked. Is there any another way?