mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Added compact print option for the material request (#14799)
This commit is contained in:
committed by
Nabin Hait
parent
b35721029b
commit
82a9fde921
@@ -6,10 +6,12 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
from erpnext.controllers.print_settings import print_settings_for_item_table
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class MaterialRequestItem(Document):
|
class MaterialRequestItem(Document):
|
||||||
pass
|
def __setup__(self):
|
||||||
|
print_settings_for_item_table(self)
|
||||||
|
|
||||||
def on_doctype_update():
|
def on_doctype_update():
|
||||||
frappe.db.add_index("Material Request Item", ["item_code", "warehouse"])
|
frappe.db.add_index("Material Request Item", ["item_code", "warehouse"])
|
||||||
Reference in New Issue
Block a user