From c5f9dcfc70d02f98fcc0f91c5903b918813de04b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 25 Sep 2013 12:43:14 +0530 Subject: [PATCH] [fix] [minor] fixes in old patches --- patches/march_2013/p08_create_aii_accounts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patches/march_2013/p08_create_aii_accounts.py b/patches/march_2013/p08_create_aii_accounts.py index 64a19c5f9d8..b56d72d768e 100644 --- a/patches/march_2013/p08_create_aii_accounts.py +++ b/patches/march_2013/p08_create_aii_accounts.py @@ -87,5 +87,9 @@ def create_chart_of_accounts_if_not_exists(): default_expense_account = '', default_income_account = '', cost_center = '', stock_received_but_not_billed = '', stock_adjustment_account = '', expenses_included_in_valuation = '' where name = %s""", company[0]) + + webnotes.conn.sql("""update `tabCompany` set domain = 'Services' + where name = %s and ifnull(domain, '') = ''""", company[0]) + webnotes.bean("Company", company[0]).save() \ No newline at end of file