Merge pull request #25767 from deepeshgarg007/gst-ptach-fix-1

fix: Do not throw error on migrate
This commit is contained in:
Deepesh Garg 2021-05-20 18:40:48 +05:30 committed by GitHub
commit 181c5d240b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,7 +695,7 @@ def get_gst_accounts(company=None, account_wise=False, only_reverse_charge=0, on
filters=filters,
fields=["cgst_account", "sgst_account", "igst_account", "cess_account"])
if not gst_settings_accounts and not frappe.flags.in_test:
if not gst_settings_accounts and not frappe.flags.in_test and not frappe.flags.in_migrate:
frappe.throw(_("Please set GST Accounts in GST Settings"))
for d in gst_settings_accounts: