From 82a9fde921f412c026f318bf9ca4c77577b49500 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 6 Jul 2018 10:40:51 +0530 Subject: [PATCH] Added compact print option for the material request (#14799) --- .../doctype/material_request_item/material_request_item.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/material_request_item/material_request_item.py b/erpnext/stock/doctype/material_request_item/material_request_item.py index 16f007f6a2..6c6ecfea83 100644 --- a/erpnext/stock/doctype/material_request_item/material_request_item.py +++ b/erpnext/stock/doctype/material_request_item/material_request_item.py @@ -6,10 +6,12 @@ from __future__ import unicode_literals import frappe +from erpnext.controllers.print_settings import print_settings_for_item_table from frappe.model.document import Document class MaterialRequestItem(Document): - pass + def __setup__(self): + print_settings_for_item_table(self) def on_doctype_update(): frappe.db.add_index("Material Request Item", ["item_code", "warehouse"]) \ No newline at end of file