fix: create source_stock_entry to refer to original manufacturing entry

(cherry picked from commit d4baa9a74a)
This commit is contained in:
Smit Vora
2026-03-25 10:43:28 +05:30
committed by Mergify
parent ae89407840
commit b91af5b2b9
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
"work_order",
"subcontracting_order",
"outgoing_stock_entry",
"source_stock_entry",
"bom_info_section",
"from_bom",
"use_multi_level_bom",
@@ -125,6 +126,15 @@
"options": "Stock Entry",
"read_only": 1
},
{
"depends_on": "eval:doc.purpose == 'Disassemble'",
"fieldname": "source_stock_entry",
"fieldtype": "Link",
"label": "Source Stock Entry (Manufacture)",
"no_copy": 1,
"options": "Stock Entry",
"print_hide": 1
},
{
"bold": 1,
"fetch_from": "stock_entry_type.purpose",

View File

@@ -151,6 +151,7 @@ class StockEntry(StockController, SubcontractingInwardController):
select_print_heading: DF.Link | None
set_posting_time: DF.Check
source_address_display: DF.TextEditor | None
source_stock_entry: DF.Link | None
source_warehouse_address: DF.Link | None
stock_entry_type: DF.Link
subcontracting_inward_order: DF.Link | None