Closed harveybalce closed 4 months ago
Same Error Here in expense claims Error Says: "Approval Status must be 'Approved' or 'Rejected' ".
Self Hosted
Erpnext 15.28.2 Frappe 15.32.0 hrms 15.23.0
It's not an error because if you add expense approval within employee, the permission level one does not have rights. So you don't see the status. If he has field permission rights, he can approve, otherwise he can't.
@Nihantra-Patel Thanks
Information about bug
Error deleting and submitting expense claims Error Says: "Approval Status must be 'Approved' or 'Rejected' ".
Module
HR
Version
ERPNext: v15.28.2 (HEAD) Frappe Framework: v15.32.0 (HEAD) Frappe HR: v15.23.0 (HEAD)
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
Route
Traceback
Request Data
Response Data
Traceback with variables (most recent call last): File "apps/frappe/frappe/email/doctype/notification/notification.py", line 493, in evaluate_alert fieldtype = doc.meta.get_field(alert.value_changed).fieldtype doc =
alert =
event = 'Value Change'
TemplateError = <class 'jinja2.exceptions.TemplateError'>
context = {'doc': , 'nowdate': <function nowdate at 0x7f7afcc24b80>, 'frappe': {'utils': {'DATE_FORMAT': '%Y-%m-%d', 'TIME_FORMAT': '%H:%M:%S.%f', 'DATETIME_FORMAT': '%Y-%m-%d %H:%M:%S.%f', 'is_invalid_date_string': <function is_invalid_date_string at 0x7f7afcc13b00>, 'getdate': <function getdate at 0x7f7afcc13c40>, 'get_datetime': <function get_datetime at 0x7f7afcc13ba0>, 'get_timedelta': <function get_timedelta at 0x7f7afcc13ce0>, 'to_timedelta': <function to_timedelta at 0x7f7afcc13d80>, 'add_to_date': <function add_to_date at 0x7f7afcc240e0>, 'add_days': <function add_days at 0x7f7afcc24180>, 'add_months': <function add_months at 0x7f7afcc24220>, 'add_years': <function add_years at 0x7f7afcc242c0>, 'date_diff': <function date_diff at 0x7f7afcc24360>, 'month_diff': <function month_diff at 0x7f7afcc24400>, 'time_diff': <function time_diff at 0x7f7afcc244a0>, 'time_diff_in_seconds': <function time_diff_in_seconds at 0x7f7afcc24540>, 'time_diff_in_hours': <funct...
doc_before_save = None
field_value_before_save = None
e = AttributeError("'NoneType' object has no attribute 'fieldtype'")
title = "'NoneType' object has no attribute 'fieldtype'"
builtins.AttributeError: 'NoneType' object has no attribute 'fieldtype'