Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rigpl_erpnext/fixtures/custom_scripts/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
],
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 + '%']
Expand All @@ -359,4 +362,4 @@ frappe.ui.form.on("Item Variant Restrictions", "form_render", function(frm, cdt,
field.$input.trigger('change');
}
});
});
});