fix: do not throw validation for cancelled sle

(cherry picked from commit 32ccf3524a)
This commit is contained in:
Rohit Waghchaure
2024-02-06 22:48:13 +05:30
committed by Mergify
parent c78d4c15d3
commit 02f56ee20e

View File

@@ -93,6 +93,9 @@ class StockLedgerEntry(Document):
self.validate_inventory_dimension_negative_stock()
def validate_inventory_dimension_negative_stock(self):
if self.is_cancelled:
return
extra_cond = ""
kwargs = {}