Merge pull request #33760 from rohitwaghchaure/allow-to-change-bom-in-sco

fix: not able to change default BOM in the Subcontracting Order
This commit is contained in:
rohitwaghchaure 2023-01-21 12:04:50 +05:30 committed by GitHub
commit f6f64083d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,352 +1,353 @@
{ {
"actions": [], "actions": [],
"autoname": "hash", "autoname": "hash",
"creation": "2022-04-01 19:26:31.475015", "creation": "2022-04-01 19:26:31.475015",
"doctype": "DocType", "doctype": "DocType",
"document_type": "Document", "document_type": "Document",
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"item_code", "item_code",
"item_name", "item_name",
"bom", "bom",
"include_exploded_items", "include_exploded_items",
"column_break_3", "column_break_3",
"schedule_date", "schedule_date",
"expected_delivery_date", "expected_delivery_date",
"description_section", "description_section",
"description", "description",
"column_break_8", "column_break_8",
"image", "image",
"image_view", "image_view",
"quantity_and_rate_section", "quantity_and_rate_section",
"qty", "qty",
"received_qty", "received_qty",
"returned_qty", "returned_qty",
"column_break_13", "column_break_13",
"stock_uom", "stock_uom",
"conversion_factor", "conversion_factor",
"section_break_16", "section_break_16",
"rate", "rate",
"amount", "amount",
"column_break_19", "column_break_19",
"rm_cost_per_qty", "rm_cost_per_qty",
"service_cost_per_qty", "service_cost_per_qty",
"additional_cost_per_qty", "additional_cost_per_qty",
"warehouse_section", "warehouse_section",
"warehouse", "warehouse",
"accounting_details_section", "accounting_details_section",
"expense_account", "expense_account",
"manufacture_section", "manufacture_section",
"manufacturer", "manufacturer",
"manufacturer_part_no", "manufacturer_part_no",
"accounting_dimensions_section", "accounting_dimensions_section",
"cost_center", "cost_center",
"dimension_col_break", "dimension_col_break",
"project", "project",
"section_break_34", "section_break_34",
"page_break" "page_break"
], ],
"fields": [ "fields": [
{ {
"bold": 1, "bold": 1,
"columns": 2, "columns": 2,
"fieldname": "item_code", "fieldname": "item_code",
"fieldtype": "Link", "fieldtype": "Link",
"in_list_view": 1, "in_list_view": 1,
"label": "Item Code", "label": "Item Code",
"options": "Item", "options": "Item",
"read_only": 1, "read_only": 1,
"reqd": 1, "reqd": 1,
"search_index": 1 "search_index": 1
}, },
{ {
"fetch_from": "item_code.item_name", "fetch_from": "item_code.item_name",
"fetch_if_empty": 1, "fetch_if_empty": 1,
"fieldname": "item_name", "fieldname": "item_name",
"fieldtype": "Data", "fieldtype": "Data",
"in_global_search": 1, "in_global_search": 1,
"label": "Item Name", "label": "Item Name",
"print_hide": 1, "print_hide": 1,
"reqd": 1 "reqd": 1
}, },
{ {
"fieldname": "column_break_3", "fieldname": "column_break_3",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{ {
"bold": 1, "bold": 1,
"columns": 2, "columns": 2,
"fieldname": "schedule_date", "fieldname": "schedule_date",
"fieldtype": "Date", "fieldtype": "Date",
"label": "Required By", "label": "Required By",
"print_hide": 1, "print_hide": 1,
"read_only": 1 "read_only": 1
}, },
{ {
"allow_on_submit": 1, "allow_on_submit": 1,
"bold": 1, "bold": 1,
"fieldname": "expected_delivery_date", "fieldname": "expected_delivery_date",
"fieldtype": "Date", "fieldtype": "Date",
"label": "Expected Delivery Date", "label": "Expected Delivery Date",
"search_index": 1 "search_index": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
"fieldname": "description_section", "fieldname": "description_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Description" "label": "Description"
}, },
{ {
"fetch_from": "item_code.description", "fetch_from": "item_code.description",
"fetch_if_empty": 1, "fetch_if_empty": 1,
"fieldname": "description", "fieldname": "description",
"fieldtype": "Text Editor", "fieldtype": "Text Editor",
"label": "Description", "label": "Description",
"print_width": "300px", "print_width": "300px",
"reqd": 1, "reqd": 1,
"width": "300px" "width": "300px"
}, },
{ {
"fieldname": "column_break_8", "fieldname": "column_break_8",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{ {
"fieldname": "image", "fieldname": "image",
"fieldtype": "Attach", "fieldtype": "Attach",
"hidden": 1, "hidden": 1,
"label": "Image" "label": "Image"
}, },
{ {
"fieldname": "image_view", "fieldname": "image_view",
"fieldtype": "Image", "fieldtype": "Image",
"label": "Image View", "label": "Image View",
"options": "image", "options": "image",
"print_hide": 1 "print_hide": 1
}, },
{ {
"fieldname": "quantity_and_rate_section", "fieldname": "quantity_and_rate_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Quantity and Rate" "label": "Quantity and Rate"
}, },
{ {
"bold": 1, "bold": 1,
"columns": 1, "columns": 1,
"default": "1", "default": "1",
"fieldname": "qty", "fieldname": "qty",
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Quantity", "label": "Quantity",
"print_width": "60px", "print_width": "60px",
"read_only": 1, "read_only": 1,
"reqd": 1, "reqd": 1,
"width": "60px" "width": "60px"
}, },
{ {
"fieldname": "column_break_13", "fieldname": "column_break_13",
"fieldtype": "Column Break", "fieldtype": "Column Break",
"print_hide": 1 "print_hide": 1
}, },
{ {
"fieldname": "stock_uom", "fieldname": "stock_uom",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Stock UOM", "label": "Stock UOM",
"options": "UOM", "options": "UOM",
"print_width": "100px", "print_width": "100px",
"read_only": 1, "read_only": 1,
"reqd": 1, "reqd": 1,
"width": "100px" "width": "100px"
}, },
{ {
"default": "1", "default": "1",
"fieldname": "conversion_factor", "fieldname": "conversion_factor",
"fieldtype": "Float", "fieldtype": "Float",
"hidden": 1, "hidden": 1,
"label": "Conversion Factor", "label": "Conversion Factor",
"read_only": 1 "read_only": 1
}, },
{ {
"fieldname": "section_break_16", "fieldname": "section_break_16",
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{ {
"bold": 1, "bold": 1,
"columns": 2, "columns": 2,
"fetch_from": "item_code.standard_rate", "fetch_from": "item_code.standard_rate",
"fetch_if_empty": 1, "fetch_if_empty": 1,
"fieldname": "rate", "fieldname": "rate",
"fieldtype": "Currency", "fieldtype": "Currency",
"in_list_view": 1, "in_list_view": 1,
"label": "Rate", "label": "Rate",
"options": "currency", "options": "currency",
"read_only": 1, "read_only": 1,
"reqd": 1 "reqd": 1
}, },
{ {
"fieldname": "column_break_19", "fieldname": "column_break_19",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{ {
"columns": 2, "columns": 2,
"fieldname": "amount", "fieldname": "amount",
"fieldtype": "Currency", "fieldtype": "Currency",
"in_list_view": 1, "in_list_view": 1,
"label": "Amount", "label": "Amount",
"options": "currency", "options": "currency",
"read_only": 1, "read_only": 1,
"reqd": 1 "reqd": 1
}, },
{ {
"fieldname": "warehouse_section", "fieldname": "warehouse_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Warehouse Details" "label": "Warehouse Details"
}, },
{ {
"fieldname": "warehouse", "fieldname": "warehouse",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Warehouse", "label": "Warehouse",
"options": "Warehouse", "options": "Warehouse",
"print_hide": 1, "print_hide": 1,
"reqd": 1 "reqd": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
"fieldname": "accounting_details_section", "fieldname": "accounting_details_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Accounting Details" "label": "Accounting Details"
}, },
{ {
"fieldname": "expense_account", "fieldname": "expense_account",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Expense Account", "label": "Expense Account",
"options": "Account", "options": "Account",
"print_hide": 1 "print_hide": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
"fieldname": "manufacture_section", "fieldname": "manufacture_section",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Manufacture" "label": "Manufacture"
}, },
{ {
"fieldname": "manufacturer", "fieldname": "manufacturer",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Manufacturer", "label": "Manufacturer",
"options": "Manufacturer" "options": "Manufacturer"
}, },
{ {
"fieldname": "manufacturer_part_no", "fieldname": "manufacturer_part_no",
"fieldtype": "Data", "fieldtype": "Data",
"label": "Manufacturer Part Number" "label": "Manufacturer Part Number"
}, },
{ {
"depends_on": "item_code", "depends_on": "item_code",
"fetch_from": "item_code.default_bom", "fetch_from": "item_code.default_bom",
"fieldname": "bom", "fetch_if_empty": 1,
"fieldtype": "Link", "fieldname": "bom",
"in_list_view": 1, "fieldtype": "Link",
"label": "BOM", "in_list_view": 1,
"options": "BOM", "label": "BOM",
"print_hide": 1, "options": "BOM",
"reqd": 1 "print_hide": 1,
}, "reqd": 1
{ },
"default": "0", {
"fieldname": "include_exploded_items", "default": "0",
"fieldtype": "Check", "fieldname": "include_exploded_items",
"label": "Include Exploded Items", "fieldtype": "Check",
"print_hide": 1 "label": "Include Exploded Items",
}, "print_hide": 1
{ },
"fieldname": "service_cost_per_qty", {
"fieldtype": "Currency", "fieldname": "service_cost_per_qty",
"label": "Service Cost Per Qty", "fieldtype": "Currency",
"read_only": 1, "label": "Service Cost Per Qty",
"reqd": 1 "read_only": 1,
}, "reqd": 1
{ },
"default": "0", {
"fieldname": "additional_cost_per_qty", "default": "0",
"fieldtype": "Currency", "fieldname": "additional_cost_per_qty",
"label": "Additional Cost Per Qty", "fieldtype": "Currency",
"read_only": 1 "label": "Additional Cost Per Qty",
}, "read_only": 1
{ },
"fieldname": "rm_cost_per_qty", {
"fieldtype": "Currency", "fieldname": "rm_cost_per_qty",
"label": "Raw Material Cost Per Qty", "fieldtype": "Currency",
"no_copy": 1, "label": "Raw Material Cost Per Qty",
"read_only": 1 "no_copy": 1,
}, "read_only": 1
{ },
"allow_on_submit": 1, {
"default": "0", "allow_on_submit": 1,
"fieldname": "page_break", "default": "0",
"fieldtype": "Check", "fieldname": "page_break",
"label": "Page Break", "fieldtype": "Check",
"no_copy": 1, "label": "Page Break",
"print_hide": 1 "no_copy": 1,
}, "print_hide": 1
{ },
"fieldname": "section_break_34", {
"fieldtype": "Section Break" "fieldname": "section_break_34",
}, "fieldtype": "Section Break"
{ },
"depends_on": "received_qty", {
"fieldname": "received_qty", "depends_on": "received_qty",
"fieldtype": "Float", "fieldname": "received_qty",
"label": "Received Qty", "fieldtype": "Float",
"no_copy": 1, "label": "Received Qty",
"print_hide": 1, "no_copy": 1,
"read_only": 1 "print_hide": 1,
}, "read_only": 1
{ },
"depends_on": "returned_qty", {
"fieldname": "returned_qty", "depends_on": "returned_qty",
"fieldtype": "Float", "fieldname": "returned_qty",
"label": "Returned Qty", "fieldtype": "Float",
"no_copy": 1, "label": "Returned Qty",
"print_hide": 1, "no_copy": 1,
"read_only": 1 "print_hide": 1,
}, "read_only": 1
{ },
"collapsible": 1, {
"fieldname": "accounting_dimensions_section", "collapsible": 1,
"fieldtype": "Section Break", "fieldname": "accounting_dimensions_section",
"label": "Accounting Dimensions" "fieldtype": "Section Break",
}, "label": "Accounting Dimensions"
{ },
"fieldname": "cost_center", {
"fieldtype": "Link", "fieldname": "cost_center",
"label": "Cost Center", "fieldtype": "Link",
"options": "Cost Center" "label": "Cost Center",
}, "options": "Cost Center"
{ },
"fieldname": "dimension_col_break", {
"fieldtype": "Column Break" "fieldname": "dimension_col_break",
}, "fieldtype": "Column Break"
{ },
"fieldname": "project", {
"fieldtype": "Link", "fieldname": "project",
"label": "Project", "fieldtype": "Link",
"options": "Project" "label": "Project",
} "options": "Project"
], }
"idx": 1, ],
"index_web_pages_for_search": 1, "idx": 1,
"istable": 1, "index_web_pages_for_search": 1,
"links": [], "istable": 1,
"modified": "2022-08-15 14:25:45.177703", "links": [],
"modified_by": "Administrator", "modified": "2023-01-20 23:25:45.363281",
"module": "Subcontracting", "modified_by": "Administrator",
"name": "Subcontracting Order Item", "module": "Subcontracting",
"naming_rule": "Random", "name": "Subcontracting Order Item",
"owner": "Administrator", "naming_rule": "Random",
"permissions": [], "owner": "Administrator",
"quick_entry": 1, "permissions": [],
"search_fields": "item_name", "quick_entry": 1,
"sort_field": "modified", "search_fields": "item_name",
"sort_order": "DESC", "sort_field": "modified",
"states": [], "sort_order": "DESC",
"track_changes": 1 "states": [],
"track_changes": 1
} }