chore: Handle edge cases
This commit is contained in:
parent
5f75aea6fa
commit
0120588f5f
@ -415,6 +415,8 @@ class Company(NestedSet):
|
|||||||
|
|
||||||
if income_account:
|
if income_account:
|
||||||
income_account = income_account[0]
|
income_account = income_account[0]
|
||||||
|
else:
|
||||||
|
income_account = None
|
||||||
|
|
||||||
self.db_set("default_income_account", income_account)
|
self.db_set("default_income_account", income_account)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user