Skip to content

Commit

Permalink
fix: frappe.exceptions.DoesNotExistError: DocType KSA VAT Setting not…
Browse files Browse the repository at this point in the history
… found

When migrating from v12->v13 migration fails
While migrating the doctype is not reloaded before adding permission. frappe#35795
  • Loading branch information
ashish-greycube authored Jun 20, 2023
1 parent 04990d5 commit a169187
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/regional/saudi_arabia/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def add_print_formats():


def add_permissions():
frappe.reload_doc("regional", "doctype", "ksa_vat_setting", force=True)
"""Add Permissions for KSA VAT Setting."""
add_permission("KSA VAT Setting", "All", 0)
for role in ("Accounts Manager", "Accounts User", "System Manager"):
Expand Down

0 comments on commit a169187

Please sign in to comment.