fixed conflict
This commit is contained in:
commit
ec9fb67d84
@ -1,3 +1,5 @@
|
|||||||
|
execute:import unidecode # new requirement
|
||||||
|
|
||||||
erpnext.patches.4_0.validate_v3_patch
|
erpnext.patches.4_0.validate_v3_patch
|
||||||
erpnext.patches.4_0.update_user_properties
|
erpnext.patches.4_0.update_user_properties
|
||||||
erpnext.patches.4_0.move_warehouse_user_to_restrictions
|
erpnext.patches.4_0.move_warehouse_user_to_restrictions
|
||||||
|
@ -23,4 +23,4 @@ def execute():
|
|||||||
frappe.db.sql("""update `tabAccount` set balance_must_be=debit_or_credit
|
frappe.db.sql("""update `tabAccount` set balance_must_be=debit_or_credit
|
||||||
where ifnull(allow_negative_balance, 0) = 0""")
|
where ifnull(allow_negative_balance, 0) = 0""")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.country_info import get_all
|
||||||
|
from erpnext.setup.install import import_country_and_currency
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("setup", "doctype", "country")
|
frappe.reload_doc("setup", "doctype", "country")
|
||||||
|
import_country_and_currency()
|
||||||
from frappe.country_info import get_all
|
|
||||||
|
|
||||||
for name, country in get_all().iteritems():
|
for name, country in get_all().iteritems():
|
||||||
frappe.set_value("Country", name, "code", country.get("code"))
|
frappe.set_value("Country", name, "code", country.get("code"))
|
@ -23,13 +23,14 @@ def import_country_and_currency():
|
|||||||
|
|
||||||
for name in data:
|
for name in data:
|
||||||
country = frappe._dict(data[name])
|
country = frappe._dict(data[name])
|
||||||
frappe.doc({
|
if not frappe.db.exists("Country", name):
|
||||||
"doctype": "Country",
|
frappe.doc({
|
||||||
"country_name": name,
|
"doctype": "Country",
|
||||||
"code": country.code,
|
"country_name": name,
|
||||||
"date_format": country.date_format or "dd-mm-yyyy",
|
"code": country.code,
|
||||||
"time_zones": "\n".join(country.timezones or [])
|
"date_format": country.date_format or "dd-mm-yyyy",
|
||||||
}).insert()
|
"time_zones": "\n".join(country.timezones or [])
|
||||||
|
}).insert()
|
||||||
|
|
||||||
if country.currency and not frappe.db.exists("Currency", country.currency):
|
if country.currency and not frappe.db.exists("Currency", country.currency):
|
||||||
frappe.doc({
|
frappe.doc({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user