fix: disarding stock entry fix

This commit is contained in:
nishkagosalia
2026-06-21 09:54:20 +05:30
parent f8359c91b2
commit debe1855c6

View File

@@ -187,7 +187,8 @@ class StatusUpdater(Document):
"""
def on_discard(self):
self.db_set("status", "Cancelled")
if self.meta.has_field("status"):
self.db_set("status", "Cancelled")
def update_prevdoc_status(self):
self.update_qty()