[Fix] Permissions issue while making item variants

This commit is contained in:
Rohit Waghchaure 2018-12-03 11:49:52 +05:30
parent ce72d26e95
commit a8003c1af7

View File

@ -458,7 +458,7 @@ $.extend(erpnext.item, {
fields: ["attribute_value"], fields: ["attribute_value"],
limit_start: 0, limit_start: 0,
limit_page_length: 500, limit_page_length: 500,
parent: "Item" parent: "Item Attribute"
} }
}).then((r) => { }).then((r) => {
if(r.message) { if(r.message) {
@ -579,7 +579,7 @@ $.extend(erpnext.item, {
["attribute_value", "like", term + "%"] ["attribute_value", "like", term + "%"]
], ],
fields: ["attribute_value"], fields: ["attribute_value"],
parent: "Item" parent: "Item Attribute"
}, },
callback: function(r) { callback: function(r) {
if (r.message) { if (r.message) {