i have set the workflow state with workflow builder, but email notification on next state isn’t sent
i created an email template also in every state
i got this error
Traceback with variables (most recent call last):
File "apps/frappe/frappe/utils/background_jobs.py", line 213, in execute_job
retval = method(**kwargs)
site = 'app.barareca.co.id'
method = <function send_workflow_action_email at 0x7f54572dfa30>
event = None
job_name = '<function send_workflow_action_email at 0x7f33fb945f30>'
kwargs = {'doc': <LeaveApplication: Nurkholis>, 'transitions': [{'allowed': 'HR Manager', 'action': 'Approve', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Approved', 'condition': None}, {'allowed': 'HR Manager', 'action': 'Reject', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Rejected', 'condition': None}]}
user = 'Administrator'
is_async = True
retry = 0
retval = None
method_name = 'frappe.workflow.doctype.workflow_action.workflow_action.send_workflow_action_email'
before_job_task = 'frappe.monitor.start'
File "apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 379, in send_workflow_action_email
users_data = get_users_next_action_data(transitions, doc)
doc = <LeaveApplication: Nurkholis>
transitions = [{'allowed': 'HR Manager', 'action': 'Approve', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Approved', 'condition': None}, {'allowed': 'HR Manager', 'action': 'Reject', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Rejected', 'condition': None}]
File "apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 335, in get_users_next_action_data
filtered_users = [
transitions = [{'allowed': 'HR Manager', 'action': 'Approve', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Approved', 'condition': None}, {'allowed': 'HR Manager', 'action': 'Reject', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Rejected', 'condition': None}]
user_data_map = {}
users = ['renjanasemesta87@gmail.com']
doc = <LeaveApplication: Nurkholis>
transition = {'allowed': 'HR Manager', 'action': 'Approve', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Approved', 'condition': None}
user_has_permission = <function get_users_next_action_data.<locals>.user_has_permission at 0x7f5457234040>
File "apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 336, in <listcomp>
user for user in users if has_approval_access(user, doc, transition) and user_has_permission(user)
.0 = <list_iterator object at 0x7f5457352ec0>
user = 'renjanasemesta87@gmail.com'
doc = <LeaveApplication: Nurkholis>
transition = {'allowed': 'HR Manager', 'action': 'Approve', 'state': 'Approved By SPV', 'allow_self_approval': 1, 'next_state': 'Approved', 'condition': None}
user_has_permission = <function get_users_next_action_data.<locals>.user_has_permission at 0x7f5457234040>
File "apps/frappe/frappe/utils/caching.py", line 57, in wrapper
return_val = func(*args, **kwargs)
args = ('renjanasemesta87@gmail.com',)
kwargs = {}
args_key = ********
func = <function get_users_next_action_data.<locals>.user_has_permission at 0x7f5457391000>
File "apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 331, in user_has_permission
return has_permission(doctype=doc, user=user, print_logs=False)
user = 'renjanasemesta87@gmail.com'
has_permission = <function has_permission at 0x7f545c2e1240>
doc = <LeaveApplication: Nurkholis>
File "apps/frappe/frappe/permissions.py", line 49, in inner
result = func(*args, **kwargs)
args = ()
kwargs = {'doctype': <LeaveApplication: Nurkholis>, 'user': 'renjanasemesta87@gmail.com', 'print_logs': False}
raise_exception = True
self_perm_check = False
func = <function has_permission at 0x7f545c2e11b0>
builtins.TypeError: has_permission() got an unexpected keyword argument 'print_logs'
how to fix this?