Merge pull request #45811 from frappe/mergify/bp/version-15-hotfix/pr-45810

fix: not able to select the item in the sales invoice (backport #45810)
This commit is contained in:
rohitwaghchaure
2025-02-10 10:41:31 +05:30
committed by GitHub

View File

@@ -187,6 +187,9 @@ def update_stock(ctx, out, doc=None):
and out.warehouse
and out.stock_qty > 0
):
if doc and isinstance(doc, dict):
doc = frappe._dict(doc)
kwargs = frappe._dict(
{
"item_code": ctx.item_code,