mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 17:42:32 +02:00
fix: ignore permissions instead of saving parent
(cherry picked from commit 6342e9a3e2)
This commit is contained in:
@@ -4044,7 +4044,7 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
|
|||||||
child_item.idx = len(parent.items) + 1
|
child_item.idx = len(parent.items) + 1
|
||||||
child_item.insert()
|
child_item.insert()
|
||||||
else:
|
else:
|
||||||
parent.save()
|
child.save(ignore_permissions=True)
|
||||||
|
|
||||||
parent.reload()
|
parent.reload()
|
||||||
parent.flags.ignore_validate_update_after_submit = True
|
parent.flags.ignore_validate_update_after_submit = True
|
||||||
|
|||||||
Reference in New Issue
Block a user