diff --git a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json index 36bb2be3dc..4a7322d56e 100644 --- a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json +++ b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json @@ -63,6 +63,7 @@ "warehouse_section", "warehouse", "rejected_warehouse", + "from_warehouse", "quality_inspection", "batch_no", "col_br_wh", @@ -761,10 +762,16 @@ "fetch_from": "item_code.asset_category", "fieldname": "asset_category", "fieldtype": "Data", - "in_preview": 1, "label": "Asset Category", "options": "Asset Category", "read_only": 1 + }, + { + "fieldname": "from_warehouse", + "fieldtype": "Link", + "ignore_user_permissions": 1, + "label": "Supplier Warehouse", + "options": "Warehouse" } ], "idx": 1, diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index 360adf7ae6..a876d163ce 100644 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -68,6 +68,7 @@ "warehouse_and_reference", "warehouse", "rejected_warehouse", + "from_warehouse", "purchase_order", "material_request", "column_break_40", @@ -815,10 +816,17 @@ "fetch_from": "item_code.asset_category", "fieldname": "asset_category", "fieldtype": "Link", - "in_preview": 1, "label": "Asset Category", "options": "Asset Category", "read_only": 1 + }, + { + "fieldname": "from_warehouse", + "fieldtype": "Link", + "hidden": 1, + "ignore_user_permissions": 1, + "label": "Supplier Warehouse", + "options": "Warehouse" } ], "idx": 1,