From 7cb1c57aebfe2f1a59f31d68631fe0fa720a8e2f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 30 Aug 2011 17:39:38 +0530 Subject: [PATCH 1/2] reload delivery note detail and item coustomer details --- patches/patch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patches/patch.py b/patches/patch.py index 159f1e0e32b..b33e1a15bd6 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 349 +last_patch = 350 #------------------------------------------- def execute(patch_no): @@ -270,3 +270,6 @@ def execute(patch_no): # reload profile with new fields for security delete_doc('DocType', 'Profile') reload_doc('core', 'doctype', 'profile') + elif patch_no == 350: + reload_doc('stock', 'doctype', 'delivery_note_detail') + reload_doc('stock', 'doctype', 'item_customer_detail') From 93592132b204d8b75e1f86e4c1caece9a560131c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 31 Aug 2011 11:27:51 +0530 Subject: [PATCH 2/2] reload dashboard --- hr/doctype/salary_manager/test_salary_manager.py | 2 +- patches/patch.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hr/doctype/salary_manager/test_salary_manager.py b/hr/doctype/salary_manager/test_salary_manager.py index e3df804b0d2..c7d086747cb 100644 --- a/hr/doctype/salary_manager/test_salary_manager.py +++ b/hr/doctype/salary_manager/test_salary_manager.py @@ -5,7 +5,7 @@ from webnotes.model.doc import Document from webnotes.model.code import get_obj sql = webnotes.conn.sql -class TestSalarySlip(unittest.TestCase): +class TestSalaryManager(unittest.TestCase): def setUp(self): webnotes.conn.begin() for rec in [des1, dep1, branch1, grade1, comp1, emp1, emp2]: diff --git a/patches/patch.py b/patches/patch.py index 2b7be9c9a53..38b853ad1f1 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 350 +last_patch = 351 #------------------------------------------- @@ -272,3 +272,5 @@ def execute(patch_no): elif patch_no == 350: reload_doc('stock', 'doctype', 'delivery_note_detail') reload_doc('stock', 'doctype', 'item_customer_detail') + elif patch_no == 351: + reload_doc('home', 'page', 'dashboard')