brotherton-erpnext/erpnext/patches/4_0/reload_sales_print_format.py

20 lines
1.1 KiB
Python
Raw Normal View History

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
2014-02-14 10:17:51 +00:00
import frappe
def execute():
2014-02-14 10:17:51 +00:00
frappe.reload_doc('accounts', 'Print Format', 'POS Invoice')
frappe.reload_doc('accounts', 'Print Format', 'Sales Invoice Classic')
frappe.reload_doc('accounts', 'Print Format', 'Sales Invoice Modern')
frappe.reload_doc('accounts', 'Print Format', 'Sales Invoice Spartan')
frappe.reload_doc('selling', 'Print Format', 'Quotation Classic')
frappe.reload_doc('selling', 'Print Format', 'Quotation Modern')
frappe.reload_doc('selling', 'Print Format', 'Quotation Spartan')
frappe.reload_doc('selling', 'Print Format', 'Sales Order Classic')
frappe.reload_doc('selling', 'Print Format', 'Sales Order Modern')
frappe.reload_doc('selling', 'Print Format', 'Sales Order Spartan')
frappe.reload_doc('stock', 'Print Format', 'Delivery Note Classic')
frappe.reload_doc('stock', 'Print Format', 'Delivery Note Modern')
frappe.reload_doc('stock', 'Print Format', 'Delivery Note Spartan')