From 34b4d26c1a8d40e854913886224359ce08394b19 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 18 Jun 2012 11:18:27 +0530 Subject: [PATCH] reload_doc replaced with sync in patch --- erpnext/patches/june_2012/set_recurring_type.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/june_2012/set_recurring_type.py b/erpnext/patches/june_2012/set_recurring_type.py index 1164b67773..bfb925c6b8 100644 --- a/erpnext/patches/june_2012/set_recurring_type.py +++ b/erpnext/patches/june_2012/set_recurring_type.py @@ -1,6 +1,6 @@ def execute(): import webnotes - from webnotes.modules import reload_doc - reload_doc('accounts', 'doctype', 'sales_invoice') + from webnotes.model.sync import sync + sync('accounts', 'sales_invoice') webnotes.conn.sql("update `tabSales Invoice` set recurring_type = 'Monthly' where ifnull(convert_into_recurring_invoice, 0) = 1") \ No newline at end of file