Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAT ID Check: KeyError #20

Closed
scdanieli opened this issue Feb 2, 2024 · 0 comments · Fixed by #30
Closed

VAT ID Check: KeyError #20

scdanieli opened this issue Feb 2, 2024 · 0 comments · Fixed by #30

Comments

@scdanieli
Copy link
Contributor

Reproduce

VAT ID Check: Select Party Address field before a Party is selected.

App Versions

{
	"erpnext": "15.11.0",
	"erpnext_germany": "15.1.1",
	"frappe": "15.12.0"
}

Route

Form/VAT ID Check/new-vat-id-check-kuntuoglke

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1684, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/desk/search.py", line 47, in search_link
    results = search_widget(
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/desk/search.py", line 95, in search_widget
    return frappe.call(
  File "apps/frappe/frappe/__init__.py", line 1684, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/__init__.py", line 2423, in wrapper
    return fn(**kwargs)
  File "apps/frappe/frappe/contacts/doctype/address/address.py", line 276, in address_query
    link_name = filters.pop("link_name")
KeyError: 'link_name'

Request Data

{
	"type": "POST",
	"args": {
		"txt": "",
		"doctype": "Address",
		"ignore_user_permissions": 0,
		"reference_doctype": "VAT ID Check",
		"page_length": 10,
		"query": "frappe.contacts.doctype.address.address.address_query",
		"filters": "{\"link_doctype\":\"Customer\"}"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.search.search_link",
	"request_id": null
}

Response Data

{
	"exception": "KeyError: 'link_name'",
	"exc_type": "KeyError"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant