fix: frappe.exceptions.DoesNotExistError: DocType KSA VAT Setting (#35797)

fix: frappe.exceptions.DoesNotExistError: DocType KSA VAT Setting not found

When migrating from v12->v13 migration fails
While migrating the doctype is not reloaded before adding permission. #35795
This commit is contained in:
Ashish Shah
2023-06-24 16:40:12 +05:30
committed by GitHub
parent de529f0adf
commit 3785fe6927

View File

@@ -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"):