fix: Production Plan: load document defaults for plan items & remove name column from listview (#26584)

This commit is contained in:
Richard Case
2021-08-26 17:22:16 +01:00
committed by GitHub
parent 485b55a799
commit 69d88a9212
2 changed files with 2 additions and 1 deletions

View File

@@ -213,7 +213,6 @@ class ProductionPlan(Document):
})
pi = self.append('po_items', {
'include_exploded_items': 1,
'warehouse': data.warehouse,
'item_code': data.item_code,
'description': data.description or item_details.description,
@@ -224,6 +223,7 @@ class ProductionPlan(Document):
'planned_start_date': now_datetime(),
'product_bundle_item': data.parent_item
})
pi._set_defaults()
if self.get_items_from == "Sales Order":
pi.sales_order = data.parent

View File

@@ -1,4 +1,5 @@
frappe.listview_settings['Production Plan'] = {
hide_name_column: true,
add_fields: ["status"],
filters: [["status", "!=", "Closed"]],
get_indicator: function (doc) {