From d8b35639d8c121fe44c72f501e523d1158b234a7 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Thu, 12 Feb 2015 15:21:46 +0530 Subject: [PATCH] image feild made hidden --- .../doctype/purchase_order_item/purchase_order_item.json | 6 ++++-- .../supplier_quotation_item/supplier_quotation_item.json | 6 ++++-- .../doctype/bom_explosion_item/bom_explosion_item.json | 6 ++++-- erpnext/manufacturing/doctype/bom_item/bom_item.json | 6 ++++-- erpnext/patches.txt | 1 + erpnext/patches/v5_0/update_item_desc_and_image.py | 7 +++++++ .../selling/doctype/opportunity_item/opportunity_item.json | 7 ++++--- erpnext/selling/doctype/quotation_item/quotation_item.json | 6 ++++-- .../selling/doctype/sales_order_item/sales_order_item.json | 4 +++- .../doctype/delivery_note_item/delivery_note_item.json | 6 ++++-- .../material_request_item/material_request_item.json | 6 ++++-- .../purchase_receipt_item/purchase_receipt_item.json | 6 ++++-- .../doctype/stock_entry_detail/stock_entry_detail.json | 6 ++++-- 13 files changed, 51 insertions(+), 22 deletions(-) create mode 100644 erpnext/patches/v5_0/update_item_desc_and_image.py diff --git a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json index 65bb7f4d391..0df7c8b000c 100755 --- a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json +++ b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json @@ -93,9 +93,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -482,7 +484,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 17:11:03.236900", + "modified": "2015-02-12 15:11:13.784588", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order Item", diff --git a/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json b/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json index b42b2b678d2..08d5871b72f 100644 --- a/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json +++ b/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json @@ -77,9 +77,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -358,7 +360,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 17:08:37.920315", + "modified": "2015-02-12 15:16:13.616428", "modified_by": "Administrator", "module": "Buying", "name": "Supplier Quotation Item", diff --git a/erpnext/manufacturing/doctype/bom_explosion_item/bom_explosion_item.json b/erpnext/manufacturing/doctype/bom_explosion_item/bom_explosion_item.json index aa5294ce5aa..59ef647bf54 100644 --- a/erpnext/manufacturing/doctype/bom_explosion_item/bom_explosion_item.json +++ b/erpnext/manufacturing/doctype/bom_explosion_item/bom_explosion_item.json @@ -58,9 +58,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -138,7 +140,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-12 12:23:57.127210", + "modified": "2015-02-12 15:16:56.092124", "modified_by": "Administrator", "module": "Manufacturing", "name": "BOM Explosion Item", diff --git a/erpnext/manufacturing/doctype/bom_item/bom_item.json b/erpnext/manufacturing/doctype/bom_item/bom_item.json index 2459b8e1bd0..4870241836a 100644 --- a/erpnext/manufacturing/doctype/bom_item/bom_item.json +++ b/erpnext/manufacturing/doctype/bom_item/bom_item.json @@ -70,9 +70,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -161,7 +163,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-12 10:41:31.336921", + "modified": "2015-02-12 15:17:18.324810", "modified_by": "Administrator", "module": "Manufacturing", "name": "BOM Item", diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 6ea16dbf59e..8156c021897 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -117,3 +117,4 @@ erpnext.patches.v5_0.new_crm_module erpnext.patches.v5_0.rename_customer_issue erpnext.patches.v5_0.update_material_transfer_for_manufacture erpnext.patches.v5_0.manufacturing_activity_type +erpnext.patches.v5_0.update_item_desc_and_image diff --git a/erpnext/patches/v5_0/update_item_desc_and_image.py b/erpnext/patches/v5_0/update_item_desc_and_image.py new file mode 100644 index 00000000000..4e03f59477c --- /dev/null +++ b/erpnext/patches/v5_0/update_item_desc_and_image.py @@ -0,0 +1,7 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +import frappe + +def execute(): + pass \ No newline at end of file diff --git a/erpnext/selling/doctype/opportunity_item/opportunity_item.json b/erpnext/selling/doctype/opportunity_item/opportunity_item.json index d81b1b7ff77..e9342dc7df9 100644 --- a/erpnext/selling/doctype/opportunity_item/opportunity_item.json +++ b/erpnext/selling/doctype/opportunity_item/opportunity_item.json @@ -83,11 +83,12 @@ { "fieldname": "image", "fieldtype": "Attach", - "hidden": 0, + "hidden": 1, "label": "Image", "options": "", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -144,7 +145,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 13:03:39.188558", + "modified": "2015-02-12 15:18:08.997193", "modified_by": "Administrator", "module": "Selling", "name": "Opportunity Item", diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.json b/erpnext/selling/doctype/quotation_item/quotation_item.json index a1031a31588..401842e0392 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.json +++ b/erpnext/selling/doctype/quotation_item/quotation_item.json @@ -69,9 +69,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -347,7 +349,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 15:21:17.447331", + "modified": "2015-02-12 15:18:41.236797", "modified_by": "Administrator", "module": "Selling", "name": "Quotation Item", diff --git a/erpnext/selling/doctype/sales_order_item/sales_order_item.json b/erpnext/selling/doctype/sales_order_item/sales_order_item.json index 4d676efaff1..0a71c1874ab 100644 --- a/erpnext/selling/doctype/sales_order_item/sales_order_item.json +++ b/erpnext/selling/doctype/sales_order_item/sales_order_item.json @@ -78,9 +78,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", diff --git a/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json b/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json index 0ac66ac0211..c67c5775c2c 100644 --- a/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json +++ b/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json @@ -84,9 +84,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -465,7 +467,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-12 10:34:45.460334", + "modified": "2015-02-12 15:19:29.701710", "modified_by": "Administrator", "module": "Stock", "name": "Delivery Note Item", diff --git a/erpnext/stock/doctype/material_request_item/material_request_item.json b/erpnext/stock/doctype/material_request_item/material_request_item.json index e5b7b696c2f..f6f88311873 100644 --- a/erpnext/stock/doctype/material_request_item/material_request_item.json +++ b/erpnext/stock/doctype/material_request_item/material_request_item.json @@ -66,9 +66,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -262,7 +264,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 16:14:59.940476", + "modified": "2015-02-12 15:20:02.832792", "modified_by": "Administrator", "module": "Stock", "name": "Material Request Item", diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index 984732e66d4..816b0b7a463 100755 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -67,9 +67,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -586,7 +588,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-12 10:37:31.933726", + "modified": "2015-02-12 15:20:26.299671", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item", diff --git a/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json b/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json index 98b5038e0e0..dda2580ba4a 100644 --- a/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json +++ b/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json @@ -94,9 +94,11 @@ { "fieldname": "image", "fieldtype": "Attach", + "hidden": 1, "label": "Image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "image_view", @@ -329,7 +331,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-10 16:18:48.313676", + "modified": "2015-02-12 15:20:56.815434", "modified_by": "Administrator", "module": "Stock", "name": "Stock Entry Detail",