From 0188df1609b9125a2a26f3a31018ccbe8eb19122 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 22 Dec 2011 18:21:57 +0530 Subject: [PATCH] Amended the patch to import class Document --- erpnext/patches/edigest_enable_income_year_to_date.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/edigest_enable_income_year_to_date.py b/erpnext/patches/edigest_enable_income_year_to_date.py index 16e8932ed34..380de832b80 100644 --- a/erpnext/patches/edigest_enable_income_year_to_date.py +++ b/erpnext/patches/edigest_enable_income_year_to_date.py @@ -1,4 +1,5 @@ import webnotes +from webnotes.model.doc import Document def execute(): companies_list = webnotes.conn.sql("SELECT company_name FROM `tabCompany`", as_list=1)