[print] item tables - override description and uom

This commit is contained in:
Rushabh Mehta
2015-02-04 17:02:24 +05:30
parent b736443e3f
commit 0e13221338
13 changed files with 68 additions and 66 deletions

View File

@@ -0,0 +1,9 @@
# Copyright (c) 2015, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
def print_settings_for_item_table(doc):
doc.print_templates = {
"description": "templates/print_formats/includes/item_table_description.html",
"qty": "templates/print_formats/includes/item_table_qty.html"
}
doc.hide_in_print_layout = ["item_code", "item_name", "image", "uom", "stock_uom"]