From 560a0026658c90b92279d1d931665bdfe5ddb6e4 Mon Sep 17 00:00:00 2001 From: Maxwell Morais Date: Thu, 11 May 2023 08:39:14 -0300 Subject: [PATCH] Update item.js --- rigpl_erpnext/fixtures/custom_scripts/item.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rigpl_erpnext/fixtures/custom_scripts/item.js b/rigpl_erpnext/fixtures/custom_scripts/item.js index 3c336d28..44b4d6e2 100644 --- a/rigpl_erpnext/fixtures/custom_scripts/item.js +++ b/rigpl_erpnext/fixtures/custom_scripts/item.js @@ -53,6 +53,7 @@ $.extend(erpnext.item, { 'method': 'frappe.client.get_list', 'args': { 'doctype': 'Item Attribute Value', + 'parent': 'Item Attribute', 'filters': [ ['Item Attribute Value', 'parent', '=', r.name] ], @@ -116,6 +117,7 @@ $.extend(erpnext.item, { 'async': false, 'args': { 'doctype': 'Item Attribute Value', + 'parent': 'Item Attribute', 'filters': filters, 'fields': ['attribute_value'], 'parent': cur_frm.doctype @@ -342,6 +344,7 @@ frappe.ui.form.on("Item Variant Restrictions", "form_render", function(frm, cdt, method: 'frappe.client.get_list', args: { doctype: 'Item Attribute Value', + parent: 'Item Attribute', filters: [ ['parent', '=', field.doc.attribute], ['attribute_value', 'like', request.term + '%'] @@ -359,4 +362,4 @@ frappe.ui.form.on("Item Variant Restrictions", "form_render", function(frm, cdt, field.$input.trigger('change'); } }); -}); \ No newline at end of file +});