Skip to content

Commit

Permalink
Merge pull request #37758 from s-aga-r/FIX-37566
Browse files Browse the repository at this point in the history
fix: `PermissionError` while creating DN from SO
  • Loading branch information
s-aga-r authored Oct 30, 2023
2 parents 54a32ad + afc64ed commit e752f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ def update_dn_item(source, target, source_parent):
"postprocess": update_dn_item,
}
},
ignore_permissions=True,
)

dn_item.qty = flt(sre.reserved_qty) * flt(dn_item.get("conversion_factor", 1))
Expand Down

0 comments on commit e752f8f

Please sign in to comment.