Browse Source
Merge pull request #13430 from codingCoffee/child_doc_perm_fix
Permisssion fixes for child table
develop
Manas Solanki
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
3 deletions
-
erpnext/public/js/utils/item_quick_entry.js
-
erpnext/stock/doctype/item/item.js
|
|
@ -319,7 +319,8 @@ frappe.ui.form.ItemQuickEntryForm = frappe.ui.form.QuickEntryForm.extend({ |
|
|
|
["parent", "=", $(e.target).attr("data-fieldname")], |
|
|
|
["attribute_value", "like", e.target.value + "%"] |
|
|
|
], |
|
|
|
fields: ["attribute_value"] |
|
|
|
fields: ["attribute_value"], |
|
|
|
parent: "Item" |
|
|
|
}, |
|
|
|
callback: function(r) { |
|
|
|
if (r.message) { |
|
|
|
|
|
@ -457,7 +457,8 @@ $.extend(erpnext.item, { |
|
|
|
], |
|
|
|
fields: ["attribute_value"], |
|
|
|
limit_start: 0, |
|
|
|
limit_page_length: 500 |
|
|
|
limit_page_length: 500, |
|
|
|
parent: "Item" |
|
|
|
} |
|
|
|
}).then((r) => { |
|
|
|
if(r.message) { |
|
|
@ -577,7 +578,8 @@ $.extend(erpnext.item, { |
|
|
|
["parent","=", i], |
|
|
|
["attribute_value", "like", term + "%"] |
|
|
|
], |
|
|
|
fields: ["attribute_value"] |
|
|
|
fields: ["attribute_value"], |
|
|
|
parent: "Item" |
|
|
|
}, |
|
|
|
callback: function(r) { |
|
|
|
if (r.message) { |
|
|
|