[minor] perpetual inventory fix

This commit is contained in:
Nabin Hait
2013-09-24 15:16:01 +05:30
parent 11f41955c9
commit 04a3feecf6
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ class DocType:
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 \