

@classmethod
def get_user_role(cls, action_type):
    return {
        RequisitionActions.REQUEST: cls.REQUESTER,
        RequisitionActions.APPROVAL: cls.APPROVER,
        RequisitionActions.FULFILL: cls.SUPPLIER,
        RequisitionActions.RECEIPTS: cls.RECEIVER,
    }[action_type]

dataset/ETHPy150Open dimagi/commcare-hq/custom/requisitions/const.py UserRequisitionRoles.get_user_role/original