wf filter dept bug
This commit is contained in:
parent
f92c9577c2
commit
8595924499
|
@ -36,7 +36,7 @@ def bind_opl(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
|||
'level': opl.level,
|
||||
'monitor': opl.monitor.id,
|
||||
'workers': list(OplWorker.objects.filter(opl=opl).values_list('worker__id', flat=True)),
|
||||
'manager': opl.charger.id,
|
||||
'charger': opl.charger.id,
|
||||
'dept_ter': opl.operation.dept_ter,
|
||||
'dept_bus': opl.operation.dept_bus
|
||||
})
|
||||
|
@ -47,7 +47,7 @@ def bind_opl(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
|||
opl.save()
|
||||
|
||||
|
||||
def close_opl_submit(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
||||
def opl_audit_end(ticket: Ticket, transition: Transition, new_ticket_data: dict):
|
||||
opl = Opl.objects.get(ticket=ticket)
|
||||
serializer = OplCloseSerializer(instance=opl, data=new_ticket_data, partial=True)
|
||||
serializer.is_valid(raise_exception=True)
|
||||
|
|
Loading…
Reference in New Issue