mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix: update status for composite asset
This commit is contained in:
@@ -615,7 +615,10 @@ class Asset(AccountsController):
|
|||||||
def get_status(self):
|
def get_status(self):
|
||||||
"""Returns status based on whether it is draft, submitted, scrapped or depreciated"""
|
"""Returns status based on whether it is draft, submitted, scrapped or depreciated"""
|
||||||
if self.docstatus == 0:
|
if self.docstatus == 0:
|
||||||
status = "Draft"
|
if self.is_composite_asset:
|
||||||
|
status = "Work In Progress"
|
||||||
|
else:
|
||||||
|
status = "Draft"
|
||||||
elif self.docstatus == 1:
|
elif self.docstatus == 1:
|
||||||
status = "Submitted"
|
status = "Submitted"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user