fix: patch regional fields for old companies (#24988)
This commit is contained in:
parent
f8b44e05c4
commit
52701dcbbc
@ -759,5 +759,6 @@ erpnext.patches.v13_0.update_vehicle_no_reqd_condition
|
|||||||
erpnext.patches.v13_0.setup_fields_for_80g_certificate_and_donation
|
erpnext.patches.v13_0.setup_fields_for_80g_certificate_and_donation
|
||||||
erpnext.patches.v13_0.rename_membership_settings_to_non_profit_settings
|
erpnext.patches.v13_0.rename_membership_settings_to_non_profit_settings
|
||||||
erpnext.patches.v13_0.setup_gratuity_rule_for_india_and_uae
|
erpnext.patches.v13_0.setup_gratuity_rule_for_india_and_uae
|
||||||
|
erpnext.patches.v13_0.setup_uae_vat_fields
|
||||||
execute:frappe.db.set_value('System Settings', None, 'app_name', 'ERPNext')
|
execute:frappe.db.set_value('System Settings', None, 'app_name', 'ERPNext')
|
||||||
erpnext.patches.v13_0.rename_discharge_date_in_ip_record
|
erpnext.patches.v13_0.rename_discharge_date_in_ip_record
|
||||||
|
12
erpnext/patches/v13_0/setup_uae_vat_fields.py
Normal file
12
erpnext/patches/v13_0/setup_uae_vat_fields.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) 2019, Frappe and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
import frappe
|
||||||
|
from erpnext.regional.united_arab_emirates.setup import setup
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
company = frappe.get_all('Company', filters = {'country': 'United Arab Emirates'})
|
||||||
|
if not company:
|
||||||
|
return
|
||||||
|
|
||||||
|
setup()
|
Loading…
Reference in New Issue
Block a user