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

Error when open Asset Item. No tabs are loaded #44937

Closed
umairsy opened this issue Dec 27, 2024 · 2 comments
Closed

Error when open Asset Item. No tabs are loaded #44937

umairsy opened this issue Dec 27, 2024 · 2 comments
Assignees

Comments

@umairsy
Copy link
Member

umairsy commented Dec 27, 2024

Information about bug

  1. Filter Fixed Asset item
  2. Open any item

Frappe team can replicate in the same site as mentioned below.

Screenshot 2024-12-27 at 3 13 21 PM

Module

stock

Version

V16

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

utils.js:1078 let out = gst_settings.validate_hsn_code && doc.is_sales_item; return out
eval @ utils.js:1078Understand this errorAI
script_manager.js:32 ƒ (frm, asset_naming_series) {
		if ((frm.doc.__onload && frm.doc.__onload.asset_naming_series) || asset_naming_series) {
			let naming_series =
				(frm.doc.__onload && frm.doc.__onload.asset_naming_s…
d @ script_manager.js:32Understand this errorAI
script_manager.js:32 ƒ (frm) {
		india_compliance.set_hsn_code_query(frm.get_field("gst_hsn_code"));
	}
d @ script_manager.js:32Understand this errorAI
utils.js:1077 Error evaluating the following expression:
utils.js:1078 let out = gst_settings.validate_hsn_code && doc.is_sales_item; return out
eval @ utils.js:1078Understand this errorAI
messages.js:26 Uncaught (in promise) Error: Invalid "depends_on" expression
    at frappe.throw (messages.js:26:8)
    at frappe.ui.form.Layout.evaluate_depends_on_value (layout.js:795:12)
    at frappe.ui.form.Layout.set_dependant_property (layout.js:741:27)
    at frappe.ui.form.Layout.refresh_dependency (layout.js:725:10)
    at frappe.ui.form.Form.refresh_field (form.js:1408:16)
    at frappe.ui.form.Form.set_df_property (form.js:1650:10)
    at frappe.ui.form.Layout.set_dependant_property (layout.js:765:14)
    at frappe.ui.form.Layout.refresh_dependency (layout.js:725:10)
    at frappe.ui.form.Form.refresh_field (form.js:1408:16)
    at frappe.ui.form.Form.set_df_property (form.js:1650:10)Understand this errorAI
item__js:1027 Uncaught (in promise) ReferenceError: india_compliance is not defined
    at onload (item__js:1027:3)
    at d (script_manager.js:30:12)
    at n (script_manager.js:109:16)
    at script_manager.js:127:22Understand this errorAI
messages.js:26 Uncaught (in promise) Error: Invalid "depends_on" expression
    at frappe.throw (messages.js:26:8)
    at frappe.ui.form.Layout.evaluate_depends_on_value (layout.js:795:12)
    at frappe.ui.form.Layout.set_dependant_property (layout.js:741:27)
    at frappe.ui.form.Layout.refresh_dependency (layout.js:725:10)
    at frappe.ui.form.Layout.refresh (layout.js:351:8)
    at frappe.ui.form.Form.refresh_fields (form.js:687:15)
    at form.js:626:16
@umairsy umairsy added the bug label Dec 27, 2024
@umairsy umairsy changed the title Error when open Asset Item. No tabs are laoded. Error when open Asset Item. No tabs are loaded Dec 31, 2024
@iamejaaz iamejaaz added the v16 label Jan 3, 2025
@sokumon sokumon closed this as completed Jan 7, 2025
@umairsy
Copy link
Member Author

umairsy commented Jan 10, 2025

@sokumon thanks for the fixes. In this case, was there any fix required?

@sokumon
Copy link
Contributor

sokumon commented Jan 10, 2025

@umairsy no it was due to something which was fixed earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants