Multi currency patch initialized

This commit is contained in:
Nabin Hait 2015-08-19 19:22:12 +05:30
parent 50ba6faaf6
commit 69c1401764

View File

@ -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, '') = ''""")