mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: south africa vat patch failure (#27324)
* fix: south africa vat patch failure (#27323)
reload doc is necessary on new doctypes
(cherry picked from commit d1fe060e4a)
# Conflicts:
# erpnext/patches/v13_0/add_custom_field_for_south_africa.py
* fix: resolve conflicts
Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Copyright (c) 2020, Frappe and Contributors
|
# Copyright (c) 2020, Frappe and Contributors
|
||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from erpnext.regional.south_africa.setup import make_custom_fields, add_permissions
|
from erpnext.regional.south_africa.setup import make_custom_fields, add_permissions
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
@@ -10,5 +10,8 @@ def execute():
|
|||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
frappe.reload_doc('regional', 'doctype', 'south_africa_vat_settings')
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'south_africa_vat_account')
|
||||||
|
|
||||||
make_custom_fields()
|
make_custom_fields()
|
||||||
add_permissions()
|
add_permissions()
|
||||||
|
|||||||
Reference in New Issue
Block a user