Permissions in erpnext

how to add write permission for a user to “purchase order item” doctype?

You must apply write permission to the purchase order, it will be automatically applied to the purchase order item.

ok.thank you

I gave permission to purchase order.
But getting permission error from following code
frappe.call({
method: ‘frappe.client.get_list’,
args: {
doctype: ‘Purchase Order Item’,
filters: {
“item_code”: child.item_code,
“parenttype”: “Purchase Order”
},
limit: 0
},

Please read it.

let me check.