mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 23:10:26 +00:00
fix: Production Plan: load document defaults for plan items & remove name column from listview (#26584)
(cherry picked from commit 69d88a9212)
# Conflicts:
# erpnext/manufacturing/doctype/production_plan/production_plan.py
# erpnext/manufacturing/doctype/production_plan/production_plan_list.js
This commit is contained in:
@@ -481,6 +481,7 @@ class ProductionPlan(Document):
|
||||
{"sales_order": data.parent, "sales_order_item": data.name, "qty": data.pending_qty}
|
||||
)
|
||||
|
||||
<<<<<<< HEAD
|
||||
bom_no = data.bom_no or item_details and item_details.get("bom_no") or ""
|
||||
if not bom_no:
|
||||
continue
|
||||
@@ -499,6 +500,19 @@ class ProductionPlan(Document):
|
||||
"product_bundle_item": data.parent_item,
|
||||
},
|
||||
)
|
||||
=======
|
||||
pi = self.append('po_items', {
|
||||
'warehouse': data.warehouse,
|
||||
'item_code': data.item_code,
|
||||
'description': data.description or item_details.description,
|
||||
'stock_uom': item_details and item_details.stock_uom or '',
|
||||
'bom_no': item_details and item_details.bom_no or '',
|
||||
'planned_qty': data.pending_qty,
|
||||
'pending_qty': data.pending_qty,
|
||||
'planned_start_date': now_datetime(),
|
||||
'product_bundle_item': data.parent_item
|
||||
})
|
||||
>>>>>>> 69d88a9212 (fix: Production Plan: load document defaults for plan items & remove name column from listview (#26584))
|
||||
pi._set_defaults()
|
||||
|
||||
if self.get_items_from == "Sales Order":
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<<<<<<< HEAD
|
||||
frappe.listview_settings["Production Plan"] = {
|
||||
=======
|
||||
frappe.listview_settings['Production Plan'] = {
|
||||
>>>>>>> 69d88a9212 (fix: Production Plan: load document defaults for plan items & remove name column from listview (#26584))
|
||||
hide_name_column: true,
|
||||
add_fields: ["status"],
|
||||
filters: [["status", "!=", "Closed"]],
|
||||
|
||||
Reference in New Issue
Block a user