From 1500c83cce68b9dd0214bfcaa22c812c3ef27ffd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 22 Oct 2013 11:42:50 +0530 Subject: [PATCH] -am --- patches/october_2013/p04_update_report_permission.py | 9 +++++++++ patches/patch_list.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 patches/october_2013/p04_update_report_permission.py diff --git a/patches/october_2013/p04_update_report_permission.py b/patches/october_2013/p04_update_report_permission.py new file mode 100644 index 0000000000..1a9f99d533 --- /dev/null +++ b/patches/october_2013/p04_update_report_permission.py @@ -0,0 +1,9 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. +# License: GNU General Public License v3. See license.txt + +import webnotes + +def execute(): + webnotes.conn.sql("""update tabDocPerm set `create`=1 where + parent='Report' + and role in ('Administrator', 'Report Manager', 'System Manager')""") \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index e353ab628a..11bb8dc7fd 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -225,4 +225,5 @@ patch_list = [ "patches.october_2013.p02_update_price_list_and_item_details_in_item_price", "execute:webnotes.delete_doc('Report', 'Item-wise Price List')", "patches.october_2013.p03_remove_sales_and_purchase_return_tool", + "patches.october_2013.p04_update_report_permission", ] \ No newline at end of file