Improve employee and partner engagement workspace
This commit is contained in:
@@ -25,6 +25,7 @@ from app.modules.clients.models import Client, ClientBusinessUnit, ClientBranch
|
||||
from app.modules.documents.models import EngagementDocument
|
||||
from app.modules.services.models import ClientServiceTaskInstance, ClientServiceSubscription, ServiceCatalogue, ServiceTaskComment, FirmTaskDocumentRequirement
|
||||
from app.modules.registrations.models import ClientRegistration, RegistrationType
|
||||
from app.modules.services.engagement_resources import build_engagement_resource_context
|
||||
from app.modules.services.execution import (
|
||||
CLOSED_TASK_STATUSES,
|
||||
TASK_PRIORITIES,
|
||||
@@ -4164,6 +4165,8 @@ def get_employee_engagement_work_board(
|
||||
and int(task.firm_task_template_id) in mandatory_requirement_template_ids
|
||||
)
|
||||
|
||||
resource_context = build_engagement_resource_context(db, subscription, tasks, engagement_documents) if subscription is not None else {}
|
||||
|
||||
scope_display = _employee_work_scope_display_map(
|
||||
db,
|
||||
tenant_id=scope.tenant_id,
|
||||
@@ -4191,6 +4194,7 @@ def get_employee_engagement_work_board(
|
||||
"active_category": selected_category,
|
||||
"next_task": next_task,
|
||||
"documents": engagement_documents,
|
||||
"resources": resource_context,
|
||||
"scope_display": scope_display,
|
||||
"i1_enabled": True,
|
||||
"communication_types": TASK_COMMUNICATION_TYPES,
|
||||
|
||||
Reference in New Issue
Block a user