Fixing the error ValueError: "name 'date_from' is not defined" while evaluating '[date_from, date_to, employee_id, contract_id]' This commit close #12383, close #8883, close #3116