chore: Handle edge cases

This commit is contained in:
Deepesh Garg 2023-08-24 18:32:16 +05:30
parent 5f75aea6fa
commit 0120588f5f

View File

@ -415,6 +415,8 @@ class Company(NestedSet):
if income_account:
income_account = income_account[0]
else:
income_account = None
self.db_set("default_income_account", income_account)