[minor] perpetual inventory fix
diff --git a/accounts/doctype/account/account.py b/accounts/doctype/account/account.py
index fb1d416..fba51a9 100644
--- a/accounts/doctype/account/account.py
+++ b/accounts/doctype/account/account.py
@@ -97,7 +97,7 @@
def validate_frozen_accounts_modifier(self):
old_value = webnotes.conn.get_value("Account", self.doc.name, "freeze_account")
- if old_value != self.doc.freeze_account:
+ if old_value and old_value != self.doc.freeze_account:
frozen_accounts_modifier = webnotes.conn.get_value( 'Accounts Settings', None,
'frozen_accounts_modifier')
if not frozen_accounts_modifier or \
diff --git a/accounts/doctype/accounts_settings/accounts_settings.txt b/accounts/doctype/accounts_settings/accounts_settings.txt
index 3ee35c8..026cf61 100644
--- a/accounts/doctype/accounts_settings/accounts_settings.txt
+++ b/accounts/doctype/accounts_settings/accounts_settings.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-06-24 15:49:57",
"docstatus": 0,
- "modified": "2013-09-24 11:52:57",
+ "modified": "2013-09-24 11:52:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
diff --git a/patches/patch_list.py b/patches/patch_list.py
index 5f0b9cf..f0a26d2 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -193,6 +193,7 @@
"patches.july_2013.p10_change_partner_user_to_website_user",
"patches.july_2013.p11_update_price_list_currency",
"execute:webnotes.bean('Selling Settings').save() #2013-07-29",
+ "execute:webnotes.reload_doc('accounts', 'doctype', 'accounts_settings') # 2013-09-24",
"patches.august_2013.p01_auto_accounting_for_stock_patch",
"patches.august_2013.p01_hr_settings",
"patches.august_2013.p02_rename_price_list",
@@ -215,6 +216,5 @@
"patches.september_2013.p03_update_stock_uom_in_sle",
"patches.september_2013.p03_move_website_to_framework",
"execute:webnotes.bean('Style Settings').save() #2013-09-19",
- "execute:webnotes.reload_doc('accounts', 'doctype', 'accounts_settings') # 2013-09-24"
"execute:webnotes.conn.set_value('Accounts Settings', None, 'frozen_accounts_modifier', 'Accounts Manager') # 2013-09-24",
]
\ No newline at end of file