Skip to content

Commit c870747

Browse files
authored
Merge pull request #3835 from resilient-tech/mergify/bp/version-15-hotfix/pr-3826
fix: do not execute patch if 'is_reverse_charge_account' field does not exists (backport #3826)
2 parents 1155b69 + 3622147 commit c870747

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

india_compliance/patches/post_install/update_gst_accounts.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55

66
def execute():
7+
if not frappe.db.has_column("GST Account", "is_reverse_charge_account"):
8+
return
9+
710
gst_accounts = frappe.get_all(
811
"GST Account",
912
filters={"parent": "GST Settings", "account_type": ("is", "not set")},

0 commit comments

Comments
 (0)