mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
chore: validation for none type object
This commit is contained in:
@@ -603,7 +603,7 @@ class Company(NestedSet):
|
||||
self.reporting_currency = parent_reporting_currency
|
||||
|
||||
def validate_pending_reposts(self, old_doc):
|
||||
if old_doc.accounts_frozen_till_date != self.accounts_frozen_till_date:
|
||||
if old_doc and old_doc.accounts_frozen_till_date != self.accounts_frozen_till_date:
|
||||
if self.accounts_frozen_till_date:
|
||||
check_pending_reposting(self.accounts_frozen_till_date)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user