fix: update status for composite asset

This commit is contained in:
Khushi Rawat
2025-02-06 15:36:48 +05:30
parent 8f1044a065
commit 3855536ef1

View File

@@ -615,7 +615,10 @@ class Asset(AccountsController):
def get_status(self):
"""Returns status based on whether it is draft, submitted, scrapped or depreciated"""
if self.docstatus == 0:
status = "Draft"
if self.is_composite_asset:
status = "Work In Progress"
else:
status = "Draft"
elif self.docstatus == 1:
status = "Submitted"