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:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user