mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
chore: validation for none type object
This commit is contained in:
@@ -548,8 +548,9 @@ class Company(NestedSet):
|
|||||||
"Company", self.parent_company, ["reporting_currency"]
|
"Company", self.parent_company, ["reporting_currency"]
|
||||||
)
|
)
|
||||||
self.reporting_currency = parent_reporting_currency
|
self.reporting_currency = parent_reporting_currency
|
||||||
|
|
||||||
def validate_pending_reposts(self, old_doc):
|
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:
|
if self.accounts_frozen_till_date:
|
||||||
check_pending_reposting(self.accounts_frozen_till_date)
|
check_pending_reposting(self.accounts_frozen_till_date)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user