Permisssion fixes for child table
Related to commit 595929eb2432140a27dc262d4d78aca4ec5455c3 frappe.client.[get_list, get, get_value] when called on child table needs parent as an argument or it throws an error by default
This commit is contained in:
parent
edd63a178f
commit
c5d222253a
@ -319,7 +319,8 @@ frappe.ui.form.ItemQuickEntryForm = frappe.ui.form.QuickEntryForm.extend({
|
|||||||
["parent", "=", $(e.target).attr("data-fieldname")],
|
["parent", "=", $(e.target).attr("data-fieldname")],
|
||||||
["attribute_value", "like", e.target.value + "%"]
|
["attribute_value", "like", e.target.value + "%"]
|
||||||
],
|
],
|
||||||
fields: ["attribute_value"]
|
fields: ["attribute_value"],
|
||||||
|
parent: "Item"
|
||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (r.message) {
|
if (r.message) {
|
||||||
|
|||||||
@ -457,7 +457,8 @@ $.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"
|
||||||
}
|
}
|
||||||
}).then((r) => {
|
}).then((r) => {
|
||||||
if(r.message) {
|
if(r.message) {
|
||||||
@ -577,7 +578,8 @@ $.extend(erpnext.item, {
|
|||||||
["parent","=", i],
|
["parent","=", i],
|
||||||
["attribute_value", "like", term + "%"]
|
["attribute_value", "like", term + "%"]
|
||||||
],
|
],
|
||||||
fields: ["attribute_value"]
|
fields: ["attribute_value"],
|
||||||
|
parent: "Item"
|
||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (r.message) {
|
if (r.message) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user