chore: use local deprecation (#44306)

This commit is contained in:
David Arnold
2024-11-23 23:25:12 +01:00
committed by GitHub
parent 2e04eeb661
commit f1bd6e492a
6 changed files with 71 additions and 15 deletions

View File

@@ -822,6 +822,9 @@ class StockController(AccountsController):
self.update_inventory_dimensions(d, sl_dict)
if self.docstatus == 2:
from erpnext.deprecation_dumpster import deprecation_warning
deprecation_warning("unknown", "v16", "No instructions.")
# To handle denormalized serial no records, will br deprecated in v16
for field in ["serial_no", "batch_no"]:
if d.get(field):