From a29b76fb98cd30f4d78b2aa8a10e41943944ffbb Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 13 Sep 2013 17:42:03 +0530 Subject: [PATCH] [fix] [minor] install feature setup --- startup/install.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/startup/install.py b/startup/install.py index ea281b8ea77..655573fedf3 100644 --- a/startup/install.py +++ b/startup/install.py @@ -64,7 +64,8 @@ def post_import(): def feature_setup(): """save global defaults and features setup""" - doc = webnotes.doc("Features Setup", "Features Setup") + bean = webnotes.bean("Features Setup", "Features Setup") + bean.ignore_permissions = True # store value as 1 for all these fields flds = ['fs_item_serial_nos', 'fs_item_batch_nos', 'fs_brands', 'fs_item_barcode', @@ -74,8 +75,8 @@ def feature_setup(): 'fs_recurring_invoice', 'fs_pos', 'fs_manufacturing', 'fs_quality', 'fs_page_break', 'fs_more_info', 'fs_pos_view' ] - doc.fields.update(dict(zip(flds, [1]*len(flds)))) - doc.save() + bean.doc.fields.update(dict(zip(flds, [1]*len(flds)))) + bean.save() def import_country_and_currency(): from webnotes.country_info import get_all