fix: south africa vat patch failure (#27323)

reload doc is necessary on new doctypes
This commit is contained in:
Ankush Menat 2021-09-03 12:02:32 +05:30 committed by GitHub
parent e68c55ce83
commit d1fe060e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
# Copyright (c) 2020, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.regional.south_africa.setup import add_permissions, make_custom_fields
@ -13,5 +11,8 @@ def execute():
if not company:
return
frappe.reload_doc('regional', 'doctype', 'south_africa_vat_settings')
frappe.reload_doc('accounts', 'doctype', 'south_africa_vat_account')
make_custom_fields()
add_permissions()