Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# 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 make_custom_fields, add_permissions

def execute():
company = frappe.get_all('Company', filters = {'country': 'South Africa'})
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()