Merge pull request #25767 from deepeshgarg007/gst-ptach-fix-1
fix: Do not throw error on migrate
This commit is contained in:
commit
181c5d240b
@ -695,7 +695,7 @@ def get_gst_accounts(company=None, account_wise=False, only_reverse_charge=0, on
|
|||||||
filters=filters,
|
filters=filters,
|
||||||
fields=["cgst_account", "sgst_account", "igst_account", "cess_account"])
|
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"))
|
frappe.throw(_("Please set GST Accounts in GST Settings"))
|
||||||
|
|
||||||
for d in gst_settings_accounts:
|
for d in gst_settings_accounts:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user