fix(manufacturing): add sales order fields in subassembly child table

This commit is contained in:
Pandiyan37
2026-02-17 12:10:08 +05:30
parent e3a2b310d8
commit 0576752d3b
2 changed files with 22 additions and 2 deletions

View File

@@ -10,6 +10,8 @@
"fg_warehouse",
"parent_item_code",
"schedule_date",
"sales_order",
"sales_order_item",
"column_break_3",
"qty",
"bom_no",
@@ -212,20 +214,36 @@
"label": "Ordered Qty",
"no_copy": 1,
"read_only": 1
},
{
"fieldname": "sales_order",
"fieldtype": "Link",
"label": "Sales Order",
"options": "Sales Order",
"read_only": 1
},
{
"fieldname": "sales_order_item",
"fieldtype": "Data",
"hidden": 1,
"label": "Sales Order Item",
"no_copy": 1,
"print_hide": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2025-06-10 13:36:24.759101",
"modified": "2026-02-17 12:06:02.309032",
"modified_by": "Administrator",
"module": "Manufacturing",
"name": "Production Plan Sub Assembly Item",
"owner": "Administrator",
"permissions": [],
"quick_entry": 1,
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}
}

View File

@@ -33,6 +33,8 @@ class ProductionPlanSubAssemblyItem(Document):
purchase_order: DF.Link | None
qty: DF.Float
received_qty: DF.Float
sales_order: DF.Link | None
sales_order_item: DF.Data | None
schedule_date: DF.Datetime | None
stock_uom: DF.Link | None
supplier: DF.Link | None