mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +00:00
* fix: added Stock UOM field for RM in work order (#44185)
fix: added UOM field for RM in work order
(cherry picked from commit cc571aca8f)
# Conflicts:
# erpnext/manufacturing/doctype/work_order_item/work_order_item.json
# erpnext/manufacturing/doctype/work_order_item/work_order_item.py
# erpnext/patches.txt
* chore: fix conflicts
* chore: fix conflicts
* chore: fix conflicts
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
"include_item_in_manufacturing",
|
"include_item_in_manufacturing",
|
||||||
"qty_section",
|
"qty_section",
|
||||||
"required_qty",
|
"required_qty",
|
||||||
|
"stock_uom",
|
||||||
"rate",
|
"rate",
|
||||||
"amount",
|
"amount",
|
||||||
"column_break_11",
|
"column_break_11",
|
||||||
@@ -138,11 +139,19 @@
|
|||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Returned Qty ",
|
"label": "Returned Qty ",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "item_code.stock_uom",
|
||||||
|
"fieldname": "stock_uom",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Stock UOM",
|
||||||
|
"options": "UOM",
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-02-11 15:45:32.318374",
|
"modified": "2024-11-19 15:48:16.823384",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Work Order Item",
|
"name": "Work Order Item",
|
||||||
|
|||||||
@@ -367,3 +367,4 @@ erpnext.patches.v14_0.delete_orphaned_asset_movement_item_records
|
|||||||
erpnext.patches.v14_0.remove_cancelled_asset_capitalization_from_asset
|
erpnext.patches.v14_0.remove_cancelled_asset_capitalization_from_asset
|
||||||
erpnext.patches.v14_0.enable_set_priority_for_pricing_rules #1
|
erpnext.patches.v14_0.enable_set_priority_for_pricing_rules #1
|
||||||
erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter
|
erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter
|
||||||
|
erpnext.patches.v14_0.update_stock_uom_in_work_order_item
|
||||||
|
|||||||
15
erpnext/patches/v14_0/update_stock_uom_in_work_order_item.py
Normal file
15
erpnext/patches/v14_0/update_stock_uom_in_work_order_item.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql(
|
||||||
|
"""
|
||||||
|
UPDATE
|
||||||
|
`tabWork Order Item`, `tabItem`
|
||||||
|
SET
|
||||||
|
`tabWork Order Item`.stock_uom = `tabItem`.stock_uom
|
||||||
|
WHERE
|
||||||
|
`tabWork Order Item`.item_code = `tabItem`.name
|
||||||
|
AND `tabWork Order Item`.docstatus = 1
|
||||||
|
"""
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user