diff --git a/erpnext/patches/v5_7/multi_currency.py b/erpnext/patches/v5_7/multi_currency.py new file mode 100644 index 00000000000..52e4d0499f5 --- /dev/null +++ b/erpnext/patches/v5_7/multi_currency.py @@ -0,0 +1,10 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import frappe + +def execute(): + frappe.db.sql("""update `tabAccount` acc + set currency = (select default_currency from tabCompany where name=acc.company) + where ifnull(currency, '') = ''""") \ No newline at end of file