[fix] Regional print format showing for other countries users (#12045)

This commit is contained in:
rohitwaghchaure
2017-12-16 10:53:53 +05:30
committed by Nabin Hait
parent 938a1fee80
commit e3b5c0f727
8 changed files with 41 additions and 11 deletions

View File

@@ -76,6 +76,10 @@ def add_permissions():
def add_print_formats():
frappe.reload_doc("regional", "print_format", "gst_tax_invoice")
frappe.reload_doc("accounts", "print_format", "gst_pos_invoice")
frappe.db.sql(""" update `tabPrint Format` set disabled = 0 where
name in('GST POS Invoice', 'GST Tax Invoice') """)
def make_custom_fields():
hsn_sac_field = dict(fieldname='gst_hsn_code', label='HSN/SAC',