Dear Team, I was further troubleshooting with itemwise tax rate and it shows as below error:
Failed to load resource: the server responded with a status of 417 (EXPECTATION FAILED)
Traceback (most recent call last):
File “apps/frappe/frappe/utils/jinja.py”, line 94, in render_template
return get_jenv().from_string(template).render(context)
File “env/lib/python3.9/site-packages/jinja2/environment.py”, line 1291, in render
self.environment.handle_exception()
File “env/lib/python3.9/site-packages/jinja2/environment.py”, line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File “”, line 183, in top-level template code
jinja2.exceptions.UndefinedError: ‘erpnext.stock.doctype.item_tax.item_tax.ItemTax object’ has no attribute ‘tax_rate’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 69, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 37, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 75, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1447, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/www/printview.py”, line 246, in get_html_and_style
html = get_rendered_template(
File “apps/frappe/frappe/www/printview.py”, line 205, in get_rendered_template
html = template.render(args, filters={“len”: len})
File “env/lib/python3.9/site-packages/jinja2/environment.py”, line 1291, in render
self.environment.handle_exception()
File “env/lib/python3.9/site-packages/jinja2/environment.py”, line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File “apps/frappe/frappe/templates/print_formats/standard.html”, line 32, in top-level template code
{{ render_field(df, doc, no_of_cols) }}
File “env/lib/python3.9/site-packages/jinja2/sandbox.py”, line 393, in call
return __context.call(__obj, *args, **kwargs)
File “env/lib/python3.9/site-packages/jinja2/runtime.py”, line 828, in _invoke
rv = self._func(*arguments)
File “apps/frappe/frappe/templates/print_formats/standard_macros.html”, line 5, in template
File “env/lib/python3.9/site-packages/jinja2/sandbox.py”, line 393, in call
return __context.call(__obj, *args, **kwargs)
File “apps/frappe/frappe/utils/jinja.py”, line 96, in render_template
throw(
File “apps/frappe/frappe/init.py”, line 503, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 478, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 433, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError:
Is this might be any issue with the python components need to
be addressed here. Kindly guide me to fix the issue.